Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IsNumeric - VFP analogue?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00307922
Message ID:
00308074
Vues:
60
>I agree with that the docs are misstating the result of passing a memvar without quotes. The result of passing a memvar wihtout quotes is not always U. I this the data type of the thing in the memvar. I think the docs are rying to explain that if want to know teh data type of a memvar you must put it in quotes, if you don't you get the data type of the contents of the memvar, which can also be a confusing statement. But this shows what I mean;
>
>lcVar = "123"
>type(lcVar)
>
>the contents are numeric
>
>lcVar = "ABC"
>type(lcVar)
>
>the contents, that is a variable for field named abc is U
>
>lcVar1 = "123"
>lcVar2 = "lcVar1"
>type(lcVar2)
>
>the result is C because lcVar2 contains lcVar1 and lcVar1 is character type.

I just looked at the example, in the docs and it doesn't include this. Personally, I think that if this behavior is by design, including your samples (or similar ones) would partially help to clear up the confusion. I'd also like to see a bit of modification on the parameter description as well.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform