Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Performing the same action on multiple dialog elements
#1
Hi,
I often make many elements in large dialogs appear/reappear via button clicks e.g. Advanced Options. I am trying to perform the same action on multiple dialog elements in one sentence instead of many.

Currently, I am doing something like this:


Code:
Copy      Help
int hDlg=win("Dialog" "#32770")
str ElementCollection = "11[]12[]13[]45[]46[]47"
str ElementCollectionBucket
foreach ElementCollectionBucket ElementCollection
,hid id(val(ElementCollectionBucket) hDlg) ;; val turns the element id number in the str coll into an integer
,

and same for hid-

I was wondering if there was a syntax similar to

Code:
Copy      Help
TO_Check hDlg "5 9 11" 0

Looked around in help file and experimented with a few different syntaxes unsuccessfully. Anybody know how to do this?

Thanks!!!!!,
Stuart
#2
TO_Show
copy it because it is not public and may be changed or removed in the future
#3
Muchos Gracias
and
Happy Chinese New Year today!
Xin Nian Kuai Le! 新年快樂

Stuart


Forum Jump:


Users browsing this thread: 1 Guest(s)