Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hallo,
ich habe folgende Schleife
Testtable:
LOAD ApplyMap(......) as Land,
ApplyMap(...) as Wert
From xyz where ABC = '1';
SET v1 = 'A';
SET v2 = 'B';
für 1 = 1 to 2;
Table:
Noconcatenate LOAD *
Resident Testtable where Land = '$(v$(i))';
let i = i + 1;
Next
dropt table Testtabelle;
Warum wird meine Table nur für die Variable v1 gefüllt?
Vielen Dank
remove i = i+1
next will do that anyway
and please correct für 1 = 1 to 2; to for i = 1 to 2
This will work if you also change:
für 1 = 1 to 2;
to:
for i = 1 to 2 //<-- No semicolon (;) here
true
but I believe this is actually pseudo code, just for demonstration purposes.
Yep, I don't think QV lets you do "for 1=1 to 2"...already tested, it's undersigned red.
Anyway I can't undertand the final question so I don't really know what's the issue.
Most probably is only the i = i+1 you said.