English
Forum

Datumsvergleich

 

Thomas
Freier
Help! somehow I get not there to the Description in the X2 Help. get always 1 back.
CompileMarkSeparation
cls
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?
CompileMarkSeparation
cls
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
...
print dt("CompareDate", @dt("setDate", getText$(Dat&)), !Now)
.
re>

... 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  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.767 Views

Untitledvor 0 min.
H.Brill10/09/21
Torben Nissen04/16/21
Walter10/23/19
Jörg Sellmeyer08/17/17
More...

Themeninformationen

this Topic has 2 subscriber:

Thomas Freier (4x)
RGH (3x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie