Ok,
Everybody responded with the fact that I should be using a float or decimal in place of the column referencing for CreatePoint. However, using a string variable and appending the column number to "col" for referencing the column worked. vName = <table> vLong = <Columnnumber> vLat = <Columnnumber> Dim vCommand as string vCommand = "Update "+vName+" Set obj = CreatePoint(col"+vLong+",col"+vLat+")" Run command vCommand -----Original Message----- From: Niemiec, Neal Sent: Thursday, November 18, 2004 12:50 PM To: '[EMAIL PROTECTED]' Subject: Create Points and Referencing Columns OK, This is frustrating . . . I am trying to create points from a flat file that is mappable. However, I am using variables for the column names as I am having the user select the columns to use. The syntax is something like this: Update <table> Set obj = CreatePoint(xcoord, ycoord) In the Mapbasic example is has the names of the columns, however, when I input the variable names such as: Update vName Set obj = CreatePoint(vLongname,vLatname) I get the following error: Could not convert data. CreatePoint: argument 1 has invalid type The variables are strings, what am I missing Any help appreciated NTN
