| |
|
|
Thomas Freier | Help! somehow I get not there to the Description in the X2 Help. get always 1 back. CompileMarkSeparationcls
var Dat&=@Create("DateEdit", %hwnd,"Datum",100,100,94,20)
print "0 = Datum id. , -1 = Datum kleiner , 1 = Datum größer"
SetFocus(Dat&)
while 0=0
GetMessage
locate 4,0
print @GetText$(DAT&)
print @dt("getDate",0)
print
print dt("CompareDate", @GetText$(DAT&),@dt("getDate",0))'Datum nach Heute?
EndWhile
End
|
|
|
| Gruß Thomas Windows XP SP2, XProfan X2 | 06/23/11 ▲ |
|
|
|
|
RGH | Hello Thomas,
with the function "CompareDate" must both Parameter as Zeitpunkte (=Fließkommawerte) exist. In Your example is the second Parameter but one String. the can means not correctly. functions.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 06/23/11 ▲ |
|
|
|
|
Thomas Freier | Hello Roland, but How is it then correctly.? I steh there already a while before the mountain. |
|
|
| Gruß Thomas Windows XP SP2, XProfan X2 | 06/23/11 ▲ |
|
|
|
|
RGH | Hi, mitz d! = dt("SetDate", s$) can You a Fließkommavariablen a entsprechendenden Time allocate. and s$ can thoroughly the Result of getText$(Dat&) his, means in Your, drop dt("SetDate", getText$(Dat&)).
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 06/23/11 ▲ |
|
|
|
|
Thomas Freier | means so? CompileMarkSeparationcls
var Dat&=@Create("DateEdit", %hwnd,"Datum",100,100,94,20)
print "0 = Datum id. , -1 = Datum kleiner , 1 = Datum größer"
SetFocus(Dat&)
while 0=0
GetMessage
locate 4,0
print @GetText$(DAT&)
print @dt("getDate",0)
print
print dt("CompareDate", @dt("setDate", getText$(Dat&)),@dt("getDate",0))'Datum nach Heute?
EndWhile
End
shows by me still 1 on. |
|
|
| Gruß Thomas Windows XP SP2, XProfan X2 | 06/23/11 ▲ |
|
|
|
|
RGH | Hello Thomas, you should really a look into Help throwing: too dt("getDate", 0) gives a String back and not a Time. The Help "CompareDate" is To entnehmen, that both Parameter Zeitpunkte (Fließkommawerte) his must! You could naturally here from the String through "setDate" a Time make, but yet plainer ermittelst You whom actually Time with the Systemvariable !Now. CompileMarkSeparation ... and already works it!
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 06/23/11 ▲ |
|
|
|
|
Thomas Freier | Roland, thanks so GEHTS. The prefix having me well irretiert: Info on the second Parameter....then whom first transformed and now were both one String and so wrong. hope, I habs now on it. |
|
|
| Gruß Thomas Windows XP SP2, XProfan X2 | 06/24/11 ▲ |
|
|
|