Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this an integer ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00194389
Message ID:
00194393
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform