Here is some code explaining a way to do it

lTableList contains the semicolon separated names of all open tables. The index 
of the selection is kept in goal

lColList contains the column names as generated by TABL for the selected table. 
The index of the selected column is stored in goal. 

Both list variables are in common at the module level

In the dialog

Control ListBox Position 5, 15 Width 120 Height 90 Title lTableList Value 1 
into goal calling TABL ID 610

Control ListBox Position 235, 15 Width 120 Height 90 Title lColList Value 1 
into goal ID 641 disable calling finale

Subroutine TABL generates the lColList pour the selected table and ends with

alter control 610 disable
alter control 641 title lcollist enable

Jacques Paris
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Searle, Kevin
Sent: 27 octobre 2006 07:45
To: Mapinfo-L@lists.directionsmag.com
Subject: [MI-L] Map Basic Dialogs: Parent Child relationships betweencontrols

Hi All,

Is it possible to set up a parent/child relationship between 2 list
boxes such that the list displayed by the second is determined by what
is selected in the first?

Regards

KS

**********************************************************************
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please notify the 
system manager.

www.lstrillium.com

_______________________________________________
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l




_______________________________________________
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to