As far as I know it should be an integer. In MapBasic.BAS you can find constants declaration like this:
Global Const LAYER_INFO_NAME = 1
regards
George
----- Original Message ----- From: <[EMAIL PROTECTED]>
To: "MapInfo-L" <[email protected]>
Sent: Monday, March 28, 2005 10:23 PM
Subject: MI-L Error with Mapbasic statement
hi
I ma getting an error when i run this section of the code Sub Select_within Dim s_point as string Dim s_polygon as string
s_point = layerinfo(frontwindow(),1,layer_info_name) s_polygon = layerinfo(frontwindow(),2,layer_info_name)
Select * from s_point where Obj Within s_polygon into test Browse * from test End Sub
The error i get is, "Cannot ocnvert error"
Can some one help Thanks
__________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
--------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15827
--------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15828
