WB19 - Looper control without attributes doesn't work?

Startbeitrag von Joel am 28.02.2015 19: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?

Antworten:

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

von Fabrice Harari - am 28.02.2015 20:14
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

von Joel - am 01.03.2015 14:52
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.