David Baker wrote:
What I really want is something like this:
-------------------
Dialog
Title "Title"
For counter = 1 to X
Control Checkbox
ID X
Title "Item " + Str$(X)
Next
Control OKButton
Control CancelButton
-------------------
That would be perfect!
David,
As you've already found out, you cannot use the For-Next inside another
statement ('Dialog'), so what you need to do is use For-Next to build a
dialog statement string and then use Run Command to execute it. Something
like:
cmd_string = "Title ""My dialog"""
For counter = 1 to X
cmd_string = cmd_string & " Control Checkbox ID " & X & " Title
""Item " & X """"
Next
cmd_string = cmd_string & " Control OKButton Control CancelButton"
Run Command cmd_string
Take special care that you get all the quotes around your title strings.
Before using 'Run Command', use 'Note' or 'Print' to see if the command
string looks OK.
All the best,
Richard Burkmar.
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]