I am writing a program in which users specify their own output table names. This allows users to create table names with spaces. I want to use the Add Map ... Layer statement to add this table to an existing open map window - which is where the problem lies. I can't use the same variable in the Layer clause as the Open table statement because the Layer clause does not recognise spaces in table names. MI converts spaces to underscores so the open table name has essentially changed. What's the best way to deal with this so that instead of:
...Layer input one... the result would be
...Layer input_one?
Example where Input_Tables(no_of_selection(count)) = input one
Open table "d:\ciap\project data\" + Input_Tables(no_of_selection(count))
If NumWindows() = 0 then
Map from Input_Tables(no_of_selection(count))
Else
Add Map
Window FrontWindow()
Layer Input_Tables(no_of_selection(count))
End If
TIA
Kingsley
K Gum
Senior Research Assistant
Australian Housing and Urban Research Institute
Queensland University of Technology
Ph: (07) 3864 1750 Fax: (07) 3864 1827
Email: [EMAIL PROTECTED] ---------------------------------------------------------------------- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
- Re: MI MB: Underscores in Table Names Kingsley Gum
- Re: MI MB: Underscores in Table Names Dmitry Bogdanov
