PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → WB19 - Looper control without attributes doesn't work?
WB19 - Looper control without attributes doesn't work?
Débuté par Joel, 28 fév. 2015 20:39 - 2 réponses
Posté le 28 février 2015 - 20:39
Hi All -

Trying to make a looper control without attributes - help file for LooperAdd function says:

For a Looper control without attributes:
// Add an empty row
LooperAdd(LOOP_Looper1)

// Position on the empty row
Subscript = LooperCount(LOOP_Looper1)
// Then, initialize the controls
LOOP_Looper1[Subscript].ControlLastName = "Hobbes"
LOOP_Looper1[Subscript].ControlFirstName = "Samantha"

I have done this and doesn't work. Works ok with attributes, but it's a pain to add in all the attributes in the looper and attach them to the controls - what's up?
Posté le 28 février 2015 - 21:14
Hi Joel

AFAIK, that way of working with loopers works only for WINDEV, and not for all properties

It is much better to use attributes
Posté le 01 mars 2015 - 15:52
Thanks Fabrice!
That explains it!
I just looked at the help files and unless I'm really missing something, it doesn't say that the without attributes approach only works with WinDev. That's a bit frustrating!

Thanks again - You Rock!

J