Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove seconds in TIME() & subtract it.........
Message
 
À
11/08/2004 04:27:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00930059
Message ID:
00932268
Vues:
20
>>STORE TTOC(CTOT(thisform.text2.value)+CTOT(thisform.text1.value)+{^2000/01/01:},2) to thisform.text3.value>>

You can check the code below..
STORE TTOC(CTOT(thisform.text2.value)+CTOT(thisform.text1.value)+{^2000/01/01:},2) to tResult &&&thisform.text3.value
Thisform.text3.value = SUBSTR(tResult,1,5)
Z = Thisform.text3.value
STORE SUBSTR(z,1,2) TO thour
STORE SUBSTR(z,4,2) TO tMinute
nTime= tHour+"."+tMinute
VAL(nTime)

Thisform.text3.value = VAL(nTIME)
Jojo R. dela Cuesta, B.Sc.
eConsultant, Programmer
Dalplus Technologies
http://www.dalplus.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform