PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WB19 - Looper control without attributes doesn't work?
WB19 - Looper control without attributes doesn't work?
Iniciado por guest, 28,feb. 2015 20:39 - 2 respuestas
Publicado el 28,febrero 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?
Publicado el 28,febrero 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
Publicado el 01,marzo 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