General information
Category:
Coding, syntax & commands
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only