Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SYS(10) returns a number?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00273259
Message ID:
00273262
Views:
21
>I'm trying to return a string from a julian date. The help says:
>"SYS(10) returns a Character-type date from a Julian day number"
>If I ?SYS(10,2451458) in the command window, I get: 10/06/99. If I ?TYPE(SYS(10,2451458)), I get a N.
>Does anyone know what's going on here?
>
>TIA

Try lcdate = SYS(10, 2451458), then ? TYPE('lcdate'), you'll get a C. The problem is that TYPE() requires the variable in quotes. With VARTYPE() pass the variable.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform