Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this an integer ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00194389
Message ID:
00194393
Vues:
24
I think the integer type is really only for fields, not variables. If you want to know whether the value of a numeric variable happens to be an integer, you can use ?m.MyVar=INT(m.MyVar).

>I kow that with the type() function i am able to see if is a
>
>Character returning C
>Numeric (also float, double, and integer) returning N
>Currency returning Y
>Date returning D
>DateTime returning T
>Logical returning L
>Memo returning M
>Object returning O
>General returning G
>Screen (created with SAVE SCREEN) returning S
>
>my variable is an integer value
>so the type function is returning me 'N'
>but i want to know also if it is a numeric
>or a integer
>
>like this
>do case
>case type(mvariable) ='N'
>if mvariable = integer then
>else
>action
>endif
>
>can you please help me out ,
>
>David
>from (we walk on wooden shoes) holland
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform