Thank you to all the responses.
The solution was to use a run command statement eg
run command "Create Table "+UserTable+" (Ring Smallint, Radius Smallint, Units Char(10), Statistics Smallint) File "+TableName
(TableName is also a string variable).
Dan Clark
( Tel +44 20 7842 5066
Ê Fax +44 20 7842 5276
From: Clark, Daniel (CRTLDN) [SMTP:[EMAIL PROTECTED]]
Sent: 20 September 2000 15:08
To: '[EMAIL PROTECTED]'
Subject: MI Mapbasic Create table statement
Hi List,
Is it possible to use a string variable as the table name in the MapBasic 'Create Table' statement? (ie the variable contains a user specified table name from a dialog)
I have tried the following:
Create Table UserTable (Ring Smallint, Radius Smallint,
Units Char(10), Statistics Smallint)
File TableName
Create Map For UserTable
Where UserTable is the variable containing the name of the table as
specified by the user. When this is run I get the message "Expression
does not evaluate to a column or table name"
Any help will be apprieciated.
Dan Clark
- Tel +44 20 7842 5066
- Fax +44 20 7842 5276
