Hello Marco, The best way of doing this is to have two listboxes, one with a list of your "available" fields, the other with the users field selections. Then, have "Add>" and "<Remove" buttons to select the fields you want, or use double-clicks. You can be add "Up" and "Down" button in order to reorder the selected fields. I am sure you would have seen something like this is other Windows programs. The first time you implement this it is a moderate amount of coding but, if done carefully, it can be an excellent piece of stock code for future developments.
The "dynamic" dialog approach may be suitable when your know for sure that the number of fields is small, but to avoid windows of silly sizes (perhaps even off users screens), the approach above does pay off. Regards, Warren Vick Europa Technologies Ltd. http://www.europa-tech.com -----Original Message----- From: Marco Kok [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 03, 2002 11:10 AM To: MapInfo-L (E-mail) Subject: RE: MI-L Flexible Dialogs Unfortunately I need to have them in separate controls. I'm trying to make an append tool which let you select which column to append to which other column. The only way I can think off is to reate a dialog which has 250 separate (hidden) controls and then use Alter Control. But that seems like a lot of typing. Marco -----Original Message----- From: Marcel Wolters [mailto:[EMAIL PROTECTED]] Sent: dinsdag 3 december 2002 11:38 To: Marco Kok; MapInfo-L (E-mail) Subject: RE: MI-L Flexible Dialogs 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: 4380 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 4395