Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove seconds in TIME() & subtract it.........
Message
De
13/08/2004 15:45:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00930059
Message ID:
00933229
Vues:
27
hi,

this code you send it to me works,

but i need when i subtract time1=4:00:am from time2 =4:00:am, i need result as 24:00

set hour to 24
STORE TTOC(CTOT(thisform.text2.value)- CTOT(thisform.text1.value)+{^2000/01/01:},2) to tResult&&Thisform.text3.value
? tResult
wait
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)

thisform.text6.value=thisform.text5.value*VAL(nTIME)

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform