Link to home
Start Free TrialLog in
Avatar of furmiga
furmiga

asked on

Something like a eval('oblect'+1).whatever ???????

okie.... supose u have 10 text boxies and i named them like box1, box2, box3..... now i want to make a do while or something..

and i want to call all those 10 boxies in this do while but of corse just using one single call.


In ActionScript there is a function named eval that does that:
counter = 0
same = 0
while counter < 11 do
{
   counter++
   if eval('box'+counter).text == 'lala'
   {
      same++
   }
}

Well there ar any possible to make it in Delphi ?

Thanks in advance :)
Avatar of kretzschmar
kretzschmar
Flag of Germany image

look at the findcomponent-method

just as hint, no time yet

meikl ;-)
ASKER CERTIFIED SOLUTION
Avatar of Russell Libby
Russell Libby
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of furmiga
furmiga

ASKER

ty a lot man that solved my problem :)