Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ajuda com campo DATAHORA
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00794446
Message ID:
00794499
Views:
10
This message has been marked as the solution to the initial question of the thread.
Tiago

usando este exemplo
m.dt1 = {21/03/2003 17:23:03}
m.dt2 = {23/02/2003 16:22:02}

experimenta criar um

m.dt11 = {21/03/2003 00:00:00}
m.dt22 = {23/02/2003 00:00:00}

n1 = m.dt1 - m.dt11
n2 = m.dt2 - m.dt22

n3= n1 - n2

N3 dá-te a diferença em segundos , depois é só converter para HH:MM:SS .

para criares m.dt11 , basta tirares a data a m.dt1 , e depois criares um datetime só com data que o VFP assume a hora 00:00:00

Espero que ajude


Pedro Silva

world is wonderful with your help .

Previous
Reply
Map
View

Click here to load this message in the networking platform