Using index to access objects

edited 7:59AM in FastScript
In Fastscript/FastReport can you use to an index variable to build up the name of an object and then use it to access the properties of that object?

For instance, say I have a lot of memo objects named T1 through T30. Can a Fastscript variable (say 'i') be used to reference objects like in the pseudo code below?

for i := 1 to 30 do
begin
T.Color := clSilver;
end;


Thanks!

Comments

  • edited 7:59AM
    No it can't. FS is actually not an interpreter - it's a compiler.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.