Hendrik
You don't say explicitly but I'm assuming you're using MapBasic.
Having opened your table (you'll have the name if you use your FileOpenDLG)
you need to use TableInfo(myTabName, TAB_INFO_NCOLS) to get the number of
columns.
Then loop each column (infuriatingly you have to build a string so that you
go "COL1", "COL2" etc rather than simply 1,2,3). Use ColumnInfo statements
(eg ColumnInfo(myTabName, "COL1", COL_INFO_NAME)) to build up an array - you
can put the array straight into a dialog box list control.
Eg
Control ListBox
ID 1
Calling MyListHandler
Title from variable MyArray
Into iMyListchoice
>From the user choice on the list use code in the handler to store the return
value in a string for use elsewhere in your program.
HTH
Paul Crisp
Syntegra
Direct: 0191 461 4522
Mobile: 0776 414 3762
Fax: (0191) 461 1959
Innovation Place Metro Riverside Park
Delta Bank Road Gateshead Tyne & Wear NE11 9DJ
-----Original Message-----
From: Possberg, Hendrik (Fa. Microm)
[mailto:[EMAIL PROTECTED]]
Sent: 21 November 2001 15:39
To: 'Mapinfo-List'
Subject: MI-L MI-selecting Columnnames in a table?
Dear List,
I need some help implementing a routine/dialog which allows the user to
select a specific
column in the opened table.
That is the way it should happen:
After starting an Application a FileOpenDlg is displayed allowing the user
to open a MI-table.
Beyond this point I would like to display a Dialog or something else which
shows the user:
1. all the columnnames in the table he opened.
2. allows him/her to select one column.
The data in this selected column should be used in a variable for the
following routines.
I know the easiest way should be to use static Table definitions but this is
not possible!
Any help would be greatly appreciated.
Mit freundlichen Gr��en
microm
Micromarketing-Systeme und Consult GmbH
Hendrik Po�berg
Data & Methods
Hellersbergstr. 14
41460 Neuss
Phone: 02131-10 97 51
Fax: 02131-10 97 77
mailto:[EMAIL PROTECTED]
www.microm-online.de
Diese Nachricht wurde elektronisch versandt und ist daher auch ohne
Unterschrift rechtsg�ltig.
Der Inhalt dieser E-Mail enth�lt vertrauliche Informationen. Das Kopieren
und die Weitergabe
an Dritte ist nicht gestattet. Sollten Sie diese E-Mail irrt�mlich von uns
erhalten haben,
bitten wir Sie, diese zu vernichten und uns dar�ber zu informieren. Im
Voraus vielen Dank.
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.
********************************************************************
This email may contain information which is privileged or confidential. If you are not
the intended recipient of this email, please notify the sender immediately and delete
it without reading, copying, storing, forwarding or disclosing its contents to any
other person
Thank you
Check us out at http://www.syntegra.com
********************************************************************
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.