Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If int()
Message
From
01/03/2005 06:36:23
 
 
To
01/03/2005 06:29:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00991490
Message ID:
00991491
Views:
17
Chaim,

int() is a function that returns the integer of the arguement

>I want to check if the value is integer.
>why do I get a error in the following syntax:
>
create cursor labn (labnumber c(11))
>for i=1201 to 1288
>	ci=alltrim(str(i))
>	insert into labn values ('B'+ci)
>endfor
>create cursor labn2 (labnumber c(11))
>select labn
>i=0
>scan
>	i=i+1
>	insert into labn2 values (labn.labnumber)
>	iv=i/11
>	*if int(iv)&&here I get a error
         if( empty(mod(iv,1)) )   && test integer  && or if( int(iv) = iv )
>		insert into labn2 value('Narker')
>		insert into labn2 value('Roller')
>	endif
>endscan
>select labn2
>brow
>Thank you
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform