Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
7
Erster Beitrag:
vor 8 Jahren, 3 Monaten
Letzter Beitrag:
vor 8 Jahren, 3 Monaten
Beteiligte Autoren:
Frans, Piet van Zanten, Alexandre Leclerc

FOR each row of (nested gives error)

Startbeitrag von Frans am 01.06.2009 22:20

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.

Antworten:

Hi Frans,

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

Regards,
Piet

von Piet van Zanten - am 02.06.2009 08:08
Hi Piet,

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



von Frans - am 02.06.2009 12:17
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.

von Alexandre Leclerc - am 02.06.2009 13:09

FOR ALL ROW works??!!

Hello Alexandre,

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

Thanks


von Frans - am 02.06.2009 22:14

Re: FOR ALL ROW works??!!

Hi Frans,

Perhaps we should try "for each and every row" too. :D

Regards,
Piet

von Piet van Zanten - am 03.06.2009 05:51

Message from PC-Soft

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.

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



von Frans - am 11.06.2009 08:06
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.