Prompt for select a layer

Hi,
Is it possible to prompt the user for select a user defined layer.
I mean :
hide all layer (layer loop should be ok ),
retrieve layer names (or not possible ?)
prompt user for a layer_name (define variable) ,
unhide only the provided layer_name layer ?
I am just discovering GM scripting... Great but not always easy ...
Thanks in advance for replies.
Is it possible to prompt the user for select a user defined layer.
I mean :
hide all layer (layer loop should be ok ),
retrieve layer names (or not possible ?)
prompt user for a layer_name (define variable) ,
unhide only the provided layer_name layer ?
I am just discovering GM scripting... Great but not always easy ...
Thanks in advance for replies.
Answers
Global Mapper scripting does not have a function to prompt the user to choose one of the currently loaded layers. You can prompt the user to type in a string and match it against one of the layer variables that is available within the layer loop.
Another option is to prompt the user for a file name, and then import the selected file, but that is not the same thing, of course.
Cheers,
Bob
Bob