Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why SYS(1104) return not zero value ?
Message
 
 
À
29/01/2004 08:39:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00870903
Message ID:
00871748
Vues:
13
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform