Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Char expression transform to a datetime expression...??
Message
De
23/05/2006 02:28:47
 
 
À
22/05/2006 23:57:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01124169
Message ID:
01124189
Vues:
9
>Hi
>
>I have got this character expression:
>
>a="22/05/2006 05:30:00 PM"
>
>and this other one datime expression:
>
>b= 22/05/2006 21:00:00 PM
>
>My question is:
>
>How to transform the variable named a into a datetime effective expression, so I could do the operation:
>
>c= b - a
>
>Thanks in advance.
>Carlos Burgos

The line b= 22/05/2006 21:00:00 PM is an illegal expression, but assume that you mean to say that b is a datetime expression, you can use
c=b-Ctot(a) && c will contain the time difference in seconds
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform