I have columns in my DB as such:
price_tier1
price_tier2
price_tier3
etc...
I have a for loop wherein I'd like to iteratively pull back the value in each column:
for i := 1 to 10 do
(
tierColumn = "table.price_tier" + Cstr(i);
tier := {tierColumn}
);
Unfortunately this is giving me the "field name is not known" error. I'm guessing you cannot use variables as names for database fields.
Any suggestions on how to overcome?
Thanks!
price_tier1
price_tier2
price_tier3
etc...
I have a for loop wherein I'd like to iteratively pull back the value in each column:
for i := 1 to 10 do
(
tierColumn = "table.price_tier" + Cstr(i);
tier := {tierColumn}
);
Unfortunately this is giving me the "field name is not known" error. I'm guessing you cannot use variables as names for database fields.
Any suggestions on how to overcome?
Thanks!