PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Table on Source as Associative Array [WD20]
Table on Source as Associative Array [WD20]
Iniciado por guest, 16,dic. 2017 15:31 - 1 respuesta
Publicado el 16,diciembre 2017 - 15:31
Hello Gang !

I have a Global Variable
garrItemList is Associative Array of Structure

When Creating Table on Source, I can't use garrItemList.

But if Global Variable is Defined as
garrItemList is Array of Structure

I can use garrItemList as the Source of table .
Why is so ? Am i missing Something ??
Publicado el 16,diciembre 2017 - 15:59
Hi

the difference between an array and an associative array is that the first one has a line number, when the second one does not (it has a key value instead and that key value can be a string or anything else), in other words, there is no syntax allowing to get to line 5 (by example) of an associative array...

So I think that the table is not able to link to an array without a line number, which makes sense.

Best regards