That's right, that doesn't work. You can't use loops inside a dialog statement. You could use a MultiListBox instead of CheckBoxes. You'll have to put the column names in an array variable (before you start the dialog) and use this variable as the title for the MultiListBox:
Control MultiListBox Title From Variable variablename Met vriendelijke groet, Bridgis BV Marcel Wolters medewerker dataproductie ---------------------- www.bridgis.nl ---------------------- Sint Walburgkerkpad 3 T: 0344 - 636 242 Postbus 71 F: 0344 - 636 246 4000 AB TIEL -------------------- [EMAIL PROTECTED] -------------------- -----Oorspronkelijk bericht----- Van: Marco Kok [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 3 december 2002 11:43 Aan: MapInfo-L (E-mail) Onderwerp: MI-L Flexible Dialogs Hi All, I'm trying to create a Dialog which displays all the columns in a previously selected table. They need to be displayed separately. The code I'm trying; nCols = NumCols(SelectedTable) Dialog Title "Columns" For i = 1 To nCols Control CheckBox Title ColumnInfo(SelectedTable,"COL"+i,COL_INFO_NAME) Next But this doesn't work. Is there a way to make this work? Thanks, Marco Kok --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 4376
