finitesimian
Programmer
I was wondering if it was possible to create a dialog box that creates controls based on a variable?
I am trying to write a macro that
1. Reads data from an Area Object
2. Generates multiple checkboxes based on the data
In this example, I've made a script that reads the screen vertically to see how many rows have something written on them, and ignores blank rows:
After it returns numberofrows, I want to to make a dialog box with a matching number of checkboxes.
BTW- the easy way to do this is to use a listbox control/array, but the problem here is that I need to be able to select more than one choice.
Thanks in advance.
I am trying to write a macro that
1. Reads data from an Area Object
2. Generates multiple checkboxes based on the data
In this example, I've made a script that reads the screen vertically to see how many rows have something written on them, and ignores blank rows:
Code:
Dim input1 as object
set input1 = Sess.screen.area(9,2,21,2)
Dim input2 As String
input2 = rtrim(input1)
Dim numberofrows As Integer
numberofrows = len(input2)
After it returns numberofrows, I want to to make a dialog box with a matching number of checkboxes.
BTW- the easy way to do this is to use a listbox control/array, but the problem here is that I need to be able to select more than one choice.
Thanks in advance.