Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 1 Jahr, 3 Monaten
Letzter Beitrag:
vor 1 Jahr, 2 Monaten
Beteiligte Autoren:
André Labuschagné, DW, DerekT, Fabrice Harari

WD21 - Strange Looper Behavior

Startbeitrag von André Labuschagné am 20.04.2017 08:00

Hi All

I have a looper in WD. I have some code in Selecting a row... When the first row is selected nothing happens and the code is not executed. Any other row selected executes the code. After any other row is selected and the first row is then selected the code is executed for the first row.

Any ideas? What am I missing?




How are you populating the looper?

I have not experienced the issue you describe and in my case the looper content is based on an array filled by a query.

I always pre-select row 1 if the query has returned rows as I have controls displaying additional information that I populate using SourceToScreen().

IF lprLooper..Occurance > 0 THEN
LooperDisplay(lprLooper) //Force re-display of content (Belt and braces here as it should diplay regardless)
LooperSelectPlus(lprLooper,1) //Select row 1
ExecuteProcess(lprLooper,trtSelection) //Run selection code.

von DerekT - am 20.04.2017 09:08
Hi André,

you are probably missing a looperselectminus when you are filling the looper. Ergo, the row 1 is selected by default and the when the use clicks on it, the selection doesn't change and the code is not executed.

Best regards

von Fabrice Harari - am 20.04.2017 10:56
Hello Andre,

I ran across this same behavior in table controls some years ago and put in a ticket with tech support. They were able to reproduce it but told me it has been that way for years and they do not think they should change it now.

the work around was table select minus and then table select plus.

I do not use loopers but would not be surprised if it done the same way.


von DW - am 20.04.2017 21:26
Thanks all - I actually got it sorted with looperselectminus as per Fabrice. I am busy revisiting all our loopers again as many seem to be working by accident.

von André Labuschagné - am 22.04.2017 07:25
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.