Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Type() & vartype() not working
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement