Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Time() subtract
Message
From
17/08/2004 14:20:23
 
 
To
17/08/2004 11:31:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00933602
Message ID:
00933887
Views:
27
Actually, it just occurred to me. Changing your code just a little,
store (ESP(UserEndDate) + thisform.text2.value)- ESP(UserStartDate) + ;
     thisform.text1.value)) / (60*60) to tResult
or maybe even just
store ESP((thisform.text2.value - thisform.text1.value)/3600) to tResult
;)

Alan

>I agree 100%. I just got caught up in the code syntax that I forgot everything else <g>.
>Hope he gets this problem solved.
>Beth
>>Hmmm... Try that with 5:00 am minus 4:00 am same day. It will never return less than 24 hours. I have to go back to what I and Tore said. You can't do it without knowing the dates involved.
>>
>>Alan
>>
>>>this should work:
>>>
>>>store (ctot("01/02/2001 " + thisform.text2.value)- ctot("01/01/2001 " + thisform.text1.value)) / (60*60) to tResult
>>>
>>>
>>>
>>>>hi,
>>>>thank you,
>>>>
>>>>i try to do that,but it didn't work,
>>>>
>>>>if you know how ,can you send any sample,
>>>>
>>>>i'll appreciate
>>>>
>>>>thanks.
>>>>regards
Previous
Reply
Map
View

Click here to load this message in the networking platform