Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why SYS(1104) return not zero value ?
Message
 
 
To
29/01/2004 08:39:17
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00870903
Message ID:
00871748
Views:
12
>Fabio, this is very strange. In that thread, Andrew uses the code:
>
>
release x
>x=sys(1104)
>? x
>?type(x)
>
>First of all, notice that when you get the result of '? x', the '0' (or whatever number) has no leading spaces - therefore it is a string.
>
>Also the whole thing doesn't seem to make sense. The syntax for Type() should have been Type('x'), and that returns 'C', not 'N'.
>
>Try this:
>
Release y
>y = 5
>? y
>? type(y)
>
>First, the '? y' produces 5 with leading spaces. And then you get an error on Type(y). Why no error on Type(x)?
>

You don't get error on Type(x), when x="5", because string "5" can be evalueated to the number 5.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform