Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IsNumeric - VFP analogue?
Message
De
18/01/2000 14:23:01
 
 
À
18/01/2000 00:40:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00307922
Message ID:
00319560
Vues:
29
Roelaux, this might help.


>>MAGIC = 42
>>MyNumber = "MAGIC"
>>? TYPE(MyNumber)
>>? LEN(MyNumber)
>>
>This part I get!!
>It is N because of the lack of " " around 42. Correct?

This should be;
MAGIC = 42
MyNumber = "MAGIC"
?TYPE(&MyNumber) <-- The '&' creates an indirection to Magic's value.
?LEN(&MyNumber)

Another example, would be;

lc_alias = ALIAS() && the currently selected table

SELECT 100 && select some other table

SELECT &lc_alias && If lc_alias is empty, this will cause an error.


Rob.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform