Hallo Christian, On Wed, Nov 28, 2012 at 06:06:43PM +0100, Christian Lohmaier wrote: > 2012/11/28 Thomas Hackert <thack...@nexgo.de>: > > 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.
besten Dank auch dir für die Erklärung :) > > <quote> > > MsgBox lDate ' returns 23476 > > </quote> > > eingegeben werden? Bei > > Das macht keinen Unterschied - der Kommentar wird ja ignoriert. Kann ich „return“ dann als „gibt ... aus“ übersetzen? > > <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. Mal ’ne vielleicht blöde Frage: Ist das „Long“ denn jetzt ein Integer? Und wenn ja: Warum steht das nicht als „Date-Variable“, die es laut OLH ja auch gibt? Einen schönen Restabend noch Thomas. -- "Is it just me, or does anyone else read `bible humpers' every time someone writes `bible thumpers?' -- Joel M. Snyder, j...@mis.arizona.edu -- Informationen zum Abmelden: E-Mail an discuss+h...@de.libreoffice.org 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