Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
I have a problem with using a "for each" loop. I would like to insert the list values from an already existing list.
Example:
for each stock1 in 'A', 'B', 'C';
trace $(stock1);
next;
If I generate a table:
stock:
load * inline [stock1
A
B
C];
I can't use the field stock1 in the "for each" loop.
Thanks!
Hi guys,
I solved it by myself, I had to use the FieldValueList() statement, in this way:
stock:
load * inline [stock1
A
B
C];
for each stock1 in FieldValueList ('stock1');
trace $(stock1);
next;
Thank you all the same
Hi guys,
I solved it by myself, I had to use the FieldValueList() statement, in this way:
stock:
load * inline [stock1
A
B
C];
for each stock1 in FieldValueList ('stock1');
trace $(stock1);
next;
Thank you all the same