Hi,
 
I have a quick questions about clearing a popup menu.  I have created a dialog with some popup menus which populate with the columns of the currently open table.  My problem is:  when I open a new table and the popup menu gets re-populated with the new columns, the old colums from the previous open table as still present in the popup menu.  Is there a function which clears the popup menu after the dialog box is closed or when new tables are opened up?
 
I pasted some of my code below:
 

Control PopupMenu
Value 1
Calling GetColumns
Title from variable col_name
ID 1
Position 80, 70 Width 80

Num_Cols = TableInfo(readcontrolvalue(tables_id), TAB_INFO_NCOLS)
col_counter = 1
Do While (col_counter <= Num_Cols)
this_col = ColumnInfo(readcontrolvalue(tables_id), "col" + col_counter, COL_INFO_NAME)
array_size = Ubound(col_name)
redim col_name(array_size + 1)
col_name(array_size + 1) = this_col
col_counter = col_counter + 1
Loop


Thanks,

Marko Cucnik
BCIT  Practicum  Student

 

 

_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to