Loop to get data in Edit box property

Hints, tips and tricks for newbies

Moderators: JRL, Dorian (MJT support)

Post Reply
Pro Scripter
Posts: 56
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: 7122
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK

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

  SetDialogProperty>Dialog1,Edit%k%,Text,some text
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