Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

macro substition or executing string in Delphi 1

Status
Not open for further replies.

foxDelphi

Programmer
Feb 8, 2011
2
0
0
EE
i have variables:
var1
var2
var3
and so on ..

so, is it possibe to write something like:

for i:= 1 to 3 do
var&i := myvalue;

where &i mean number of i. like var1:= and var2:=

can anyone help please?

it may call as macro substiution or ececuting string or something like this.
it is possible in FoxPro, is it possible in Delphi too?
 
Not really. No. If you have a situation like that, use an array.

It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
 
thanks.

it's quite regretful,
this macrosubstition is quite handy sometime :)

array is good idea, but FoxPro way is bit better ... I think
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top