I'm sure I've done this before, but I just can't remember how...
I'm trying to modify an image upon returning from a dialog. Instead of using a bunch of if/then statements on the dialog return, I thought I could perhaps concatenate that result into the object name.
Here's an example:
If I show a dialog with this....
result = DialogEx.Show("Buy Plot", true, nil, nil);
can I now modify an image such as....
plot..result..gfx = "AutoPlay\\Images\\Cow.png";
(I have several images, all named plot1gfx, plot2gfx, plot3gfx, etc).
how to I use the "result" from the dialog return to modify those images without doing something like...
if (result == 1) then
plot1gfx = ....
else if (result ==2) then
plot2gfx = ....
end
Thanks as always!
-Stobe
I'm trying to modify an image upon returning from a dialog. Instead of using a bunch of if/then statements on the dialog return, I thought I could perhaps concatenate that result into the object name.
Here's an example:
If I show a dialog with this....
result = DialogEx.Show("Buy Plot", true, nil, nil);
can I now modify an image such as....
plot..result..gfx = "AutoPlay\\Images\\Cow.png";
(I have several images, all named plot1gfx, plot2gfx, plot3gfx, etc).
how to I use the "result" from the dialog return to modify those images without doing something like...
if (result == 1) then
plot1gfx = ....
else if (result ==2) then
plot2gfx = ....
end
Thanks as always!
-Stobe
Comment