Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type() & vartype() not working
Message
From
22/06/2002 19:36:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Type() & vartype() not working
Miscellaneous
Thread ID:
00671428
Message ID:
00671428
Views:
42
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
Map
View

Click here to load this message in the networking platform