Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Type() & vartype() not working
Message
De
22/06/2002 19:36:23
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Type() & vartype() not working
Divers
Thread ID:
00671428
Message ID:
00671428
Vues:
43
Hi

this is my code:

DO FORM frcalendarios TO dDate

wait 'this is the date I got'+dDate window timeout 2 && it shows the date 8properly

IF VARTYPE(dDate)="D" && type() is not working either

*****

ENDIF

*the value stored in dDate is creted this way:
*= olecontrol1 is a calendar control
*with this
*.dDate=STR(.olecontrol1.MONTH,2)+[/]+STR(.olecontrol1.DAY,2)+[/]+STR(.olecontrol1.YEAR,4)
*endwith

My problem is that neither type() nor vartype() consider
my variable as a date. What could be wrong with my code?
Probably I need to store the value in the variable with some extra characters.

TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform