Hello Listers.

I am having problems with the following portion of code to generate points 
where Helicopters are able to access.

When I run the code I get an error that says 
Found[] while searching for [)] Invalid or Missing Argument List.

The MapBasic code compiles without error.

Select * from postsrc
  Where plan_src = "HD"
 IF SelectionInfo(SEL_INFO_NROWS) > 0
then

sSymbolAttr = "(91,65535,10,'MapInfo Transportation',257,0)"
sCmd = "Set Style Symbol MakeSymbol" + sSymbolAttr

Run Command sCmd

Update "Selection"  
  Set obj = CreatePoint(CentroidX(obj),CentroidY(obj))
End if

The sSymbolAttr is dimensioned as a string
The sCmd is dimensioned as a string

If I just use Mapinfo 3 symbols such as
"(31,255,12)"
the program works fine.

Any help or suggestions would be appreciated.


Thanks,

Jon Gramm

Reply via email to