Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Action time
Message
From
02/01/2003 03:28:33
 
 
To
02/01/2003 02:28:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00737184
Message ID:
00737254
Views:
24
Thank you.
I found a way to give the result with hours and minut.
Please try this: (PS Can you help me how can I color the code in this web site like you did?)
local nSatert,nfinish,nDelay,nHours,nMinutes,nSeconds
nSatert=datetime()
create cursor test (id i)
for i =1 to 850000
insert into test value (i)
endfor
nfinish=datetime()
nDelay=nfinish-nSatert
nHours=floor(nDelay/3600)
nMinutes=floor(mod(nDelay,3600)/60)
nSeconds=mod(nDelay,60)
cTimestring=alltrim(str(nHours))+':'+padl(alltrim(str(nMinutes)),2,'0')+':'+ ;
padl(alltrim(str(nSeconds)),2,'0')
Messagebox('The operation done in '+cTimestring)
Thank you
Chaim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform