PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Help me! for a looper
Help me! for a looper
Débuté par Mimmo Ghiara, 03 oct. 2019 11:29 - Aucune réponse
Posté le 03 octobre 2019 - 11:29
Hello to all
I have a problem with a looper I have better with a pop up menu that I do a query on a looper

The looper has three fields: image, name, id linked to a table in a database.
The table has 4 fields: id, name, image, round
The table has 160 records divided by 8 rounds

The pop up menu has 9 lines the first contains a phrase "Search" the remaining 8 have "group 1" --- "group 2" and so on until as 8
I load the looper by code and when the visualization starts everything is ok
But if I search through the pop-up menu the names of a group, name and id are displayed correctly, while the invincible image of being of record 42 starts to always display them from the first image in tablella
I enter the code with which I do the search


sSearch is string 50
sSearching = COMBO_PAGE_mie_squadre..DisplayedValue
// sSearching = group 1 or group 2 etc.

LooperDeleteAll (LOOP_Squadre)
i is int = 1
HReadSeekFirst (teams, group, sRicerca)
WHILE HOut () = False
LooperInsertLine (LOOP_Squadre, teams.ID, teams.name, teams.image)
HReadNext (teams, group)
i++
END

In teams.immagine instead of loading the image of the ID corresponding to the record always loads the images starting from id 1

There is a way to solve the problem?

Thank's
Mimmo