Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ajuda com campo DATAHORA
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00794446
Message ID:
00794499
Vues:
9
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 .

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform