Welcome! Log In Create A New Profile

Advanced

FOR each row of (nested gives error)

Posted by Frans 
Frans
FOR each row of (nested gives error)
June 02, 2009 12:20AM
Hello to you all,

I noticed that: for each row of TableName gives an error.

example:
FOR each row of Table1
FOR each row of Table2

END
END

This gives an error on the 'row' word.
I couldn't find anything about a limitation on nested 'For each row'.
Tested it in W11, W12 an W14.
Does the same happen with you?

Thanks in advance.
Piet van Zanten
Re: FOR each row of (nested gives error)
June 02, 2009 10:08AM
Hi Frans,

I too found it impossible to use nested for each in some cases. I just use a workaround then.

Regards,
Piet



Edited 1 time(s). Last edit at 06/02/2009 10:09AM by Piet van Zanten.
Frans
Re: FOR each row of (nested gives error)
June 02, 2009 02:17PM
Hi Piet,

Thank you for your answer.
I will send an email to PC-Soft.

Alexandre Leclerc
Re: FOR each row of (nested gives error)
June 02, 2009 03:09PM
Hi Frans,

I made a test in the French version and it causes no problem. Then I converted the code in English and it gave the following result with no compiler problem:
FOR ALL ROW OF TABLE_Table1
	FOR ALL ROW OF TABLE_Table2
		
	END
END
Maybe this will work for you using "FOR ALL ROW"?

(I did not execute the code, so I don't know if it actually works.)

Best regards.
Frans
FOR ALL ROW works??!!
June 03, 2009 12:14AM
Hello Alexandre,

You are right.
For ALL row works??!!!

Thanks
Piet van Zanten
Re: FOR ALL ROW works??!!
June 03, 2009 07:51AM
Hi Frans,

Perhaps we should try "for each and every row" too. grinning smiley

Regards,
Piet
Frans
Message from PC-Soft
June 11, 2009 10:06AM
Hello to you all,

After a few emails I got a final message from PC-Soft:
=================
You are very right I did not catch at first that this was specific to nested FOR EACH. This is a bug. Please use the following reference if you contact me on the same subject #62 412/114743.

The workaround is of course to use FOR ALL inside the first FOR EACH.

Thank you for this feedback.

==================

Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: