| |
|
|
Stefan Schnell | Hello Community, enclosed The Possibility the Speicherung one Datums in a Long-variables, with some functions and Procedures: CompileMarkSeparation around the date properly of/ one data base use to heard the year to in front, this might (have I do not tested) through following Änderung To achieve his: CompileMarkSeparation plenty Fun at program. Greeting Stefan |
|
|
| |
|
|
|
p.specht
| 15 years later a Version for XProfan-11.2 free. Thanks the Date-function really antiquated, but here would zB The Sortierreihenfolge spare wählbar:
cls
Declare date#:Dim date#,8 : Def &Year 0 : Def &Month 4 : Def &Day 6
:Proc getDay :Return byte(date#,&Day):ENDPROC
:Proc setDay :Parameters Day&:case (Day&>0) And (Day&<32):byte date#,&Day=Day&:ENDPROC
:Proc getMonth :Return byte(date#,&Month):ENDPROC
:Proc setMonth :Parameters Month&:case (Month&>0) And (Month&<13):byte date#,&Month=Month&:ENDPROC
:Proc getYear :Return Word(date#,&Year):ENDPROC
:Proc setYear :Parameters Year&:case (Year&>-32769) And (Year&<32768):Word date#,&Year=Year&:ENDPROC
:Proc getDate :Return Str $(getDay())+"."+Str $(getMonth())+"."+Str $(getYear()):ENDPROC
:Proc setDate :Parameters Day&,Month&,Year&:setDay(Day&):setMonth(Month&):setYear(Year&):ENDPROC
SetDate(32,13,-32769)
print date#
print getdate()
waitinput
|
|
|
| Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'... | 02/02/21 ▲ |
|
|
|