Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to remove seconds in TIME() & subtract it.........
Message
From
13/08/2004 15:45:10
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00930059
Message ID:
00933229
Views:
28
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)

Previous
Reply
Map
View

Click here to load this message in the networking platform