Loop to get data in Edit box property

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
nodochau
Pro Scripter
Posts: 131
Joined: Wed Jan 16, 2019 12:59 pm

Loop to get data in Edit box property

Post by nodochau » Fri Feb 07, 2020 2:14 pm

Hello All,
I have a dialog which has 15 Edit boxes in there. I tried to get the data from those by using Repeat ..until but I could get data from the first Edit box only.
Please help.

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Loop to get data in Edit box property

Post by Marcus Tettmar » Fri Feb 07, 2020 3:46 pm

If your edit boxes have the same format name with a number in it, e.g. Edit1, Edit2 .. Editn, then you could do it using an incrementing loop counter:

Code: Select all

Let>k=0
Repeat>k
  Let>k=k+1
  SetDialogProperty>Dialog1,Edit%k%,Text,some text
Until>k=10
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts