In order to automate procedures using MapBasic, I wrote the code for overlapping two objects -- one a polygon object and the other a point object -- using Objects Intersect statement written below. It gives me the above mentioned error.
But actually, when I manually do the intersect via Mapinfo application (via Table\Update) it gives me a result which is a modified target table (BB.TAB).
'Open the point table
Open Table "C:\Temp\AA.TAB" Interactive
'Setting the Target
Select * from BB
Set Target On
Select * from AA
Objects Intersect Into Target Data CC=CC,DD=DD
How can I rectify Mapbasic error ?