Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to remove seconds in TIME() & subtract it.........
Message
 
To
11/08/2004 04:27:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00930059
Message ID:
00932268
Views:
21
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform