Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing
Message
De
07/03/2003 10:33:54
 
 
À
07/03/2003 08:52:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00762655
Message ID:
00762728
Vues:
14
Can you use datetime instead?
a=DATETIME()
b=DATETIME()
?a>b
?a<b
or something like:
lcOldSetHours = SET("HOURS")
SET HOURS TO 24
lnBegin = datetime()
=inkey(2)
lnElapsed = datetime() - lnBegin
lcElapsed = ttoc( DATETIME(2001,1,1) + lnElapsed , 2 )
Messagebox( "Completed in " + lcElapsed + " seconds!",64,"Time Elapsed" )
SET HOURS TO &lcOldSetHours
>Try it:
>
>a = time()
>b = time()
>? a < b
>
>
>
>>>I want to compare two variable which is in character type. These two variables contain hours . I want to know which one is the most recent
>>
>>If the time is in 24 hour format, just strip out the separator sign i.e. ":" and compare the val() for the two character strings.
>>
>>Einar
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform