Hello all,

I am trying to find the specific layer number of a table within a mapwindow.
I am trying to write an application in which a user is prompted with a menu
which allows him to pick a mapwindow from  various mapwindows that are open.
after he has selected the mapwindow(from the popumenu(scroll_down) I would
like the user to pick a layer on which to create a theme by prompting him
with a scroll down menu of  all the layers that are open.  

below is the code I have used to get the information on the mapper window

FOR I = 1 TO NUMWINDOWS()
WINDOWS(I) = WINDOWINFO(I,WIN_INFO_NAME)
next

DIALOG 
CONTROL STATICTEXT POSITION 10,10 TITLE "PLEASE SELECT MAPWINDOW"
CONTROL STATICTEXT POSITION 10,25 TITLE "TO FIND LAYER"
CONTROL POPUPMENU POSITION 10,40 TITLE FROM VARIABLE WINDOWS WIDTH 100 INTO
I_MAPWINDOW
CONTROL OKBUTTON
CONTROL CANCELBUTTON

        I would like to do something similar for the layer information but I
am having problems using the various commands
mapperinfo() and layerinfo()

        Any help in coming up with a solution would be appreciated being
rather new at mapbasic and programming in general this is driving me batty

thanks


----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to