Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
For loop
Message
From
26/01/2010 08:07:29
 
 
To
25/01/2010 16:46:38
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01445893
Message ID:
01445959
Views:
52
>Try using the following inside the loop after the SKIP commands:
>
>IF EOF()
> EXIT
>ENDIF

SO i added your idea to my code and guess what?it worked?!! perfectly !!
but im trying to do the same thing in a case
but its proving somewhat odd
thisform.refresh
*i=0
SELECT v_lclients
GO TOP 




FOR i = 1 TO numpeople 
MESSAGEBOX(i)
	DO CASE
		
		CASE i=1
			Thisform.pageframe1.page5.txtborrname1.value = fbobname
			thisform.pageframe1.page5.txtgarnum1.value = fbonumbr
			i=i+1
            SKIP
            MESSAGEBOX(i)
		CASE i=2
			Thisform.pageframe1.page5.txtborrname2.value = name
			thisform.pageframe1.page5.txtgarnum2.value = numbr
			i=i+1
            SKIP
            MESSAGEBOX(i)
		CASE i=3
			Thisform.pageframe1.page5.txtborrname3.value = name
			thisform.pageframe1.page5.txtgarnum3.value = numbr
			i=i+1
            SKIP
			MESSAGEBOX(i)
		CASE i=4
			Thisform.pageframe1.page5.txtborrname4.value = name
			thisform.pageframe1.page5.txtgarnum4.value = numbr
			i=i+1
            SKIP
			MESSAGEBOX(i)
		CASE i=5
			Thisform.pageframe1.page5.txtborrname5.value = name
			thisform.pageframe1.page5.txtgarnum5.value = numbr
			i=i+1
            SKIP
            MESSAGEBOX(i)
	ENDCASE
ENDFOR 
for some reason if numpeople =5 only text boxes 1,3 and 5 get values but the message boxes shows i values being 1,2,3,4,5,6
if numpeople=2 only the first box gets its value
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform