Hi Thomas,
2012/11/28 Thomas Hackert <[email protected]>:
> Hi zusammen,
> mal ’ne kurze Frage: Laut /text/sbasic/shared/03030101.xhp soll
> <quote>
> MsgBox lDate
> </quote>
>
> <quote>
> ' returns 23476
> </quote>
> ausgeben. Sehe ich das richtig, dass das ein Kommentar in Basic ist oder
> soll
Ja - ' wie auch REM sind Kommentarmarker.
> <quote>
> MsgBox lDate ' returns 23476
> </quote>
> eingegeben werden? Bei
Das macht keinen Unterschied - der Kommentar wird ja ignoriert.
> <quote>
> MsgBox lDate
> </quote>
> öffnet sich nur ein kleines Fenster mit „soffice -“ im Fenster, dass
> einen OK-Knopf hat ... :( Muss das so?
Ja - weil das ganze Beispiel so ausschaut:
Sub ExampleDateSerial
Dim lDate As Long
Dim sDate As String
lDate = DateSerial(1964, 4, 9)
sDate = DateSerial(1964, 4, 9)
MsgBox lDate ' returns 23476
MsgBox sDate ' returns 04/09/1964
End Sub
Sprich einmal das Datum als String, und einmal als Zahlwert.
ciao
Christian
--
Informationen zum Abmelden: E-Mail an [email protected]
Probleme?
http://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: http://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: http://listarchives.libreoffice.org/de/discuss/
Alle E-Mails an diese Liste werden unlöschbar öffentlich archiviert