David,
Thank you, I humbly bow to your problem solving skills. The problem was in
fact that I had declared overlap as a float variable.
Thank you, and it will teach me to use standard nomenclatures for variables
more in future.
R
-----Original Message-----
From: David Booth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 3 July 2001 9:37 PM
To: 'Robert Crossley'
Subject: RE: MI-L MI:MapBasic problem with overlap function
Interesting!
I've just had another look and tried the following:
dim CutObj,currobj as object
dim overlap as object
CutObj = Overlap(CutObj,CurrObj)
Which produces your error message - have you used "overlap" as a variable
name?
All the best,
---------------------------------------------
David Booth
Senior GIS Officer
Merseyside Information Service
> -----Original Message-----
> From: Robert Crossley [SMTP:[EMAIL PROTECTED]]
> Sent: 03 July 2001 11:06
> To: MapInfo List
> Subject: MI-L MI:MapBasic problem with overlap function
>
> I am having a wierd problem with the overlap function to get the common
> area
> between two polygons. I get a compile error:
>
> Unrecognised command: (.
>
> from the line:
> CutObj = Overlap(CutObj,CurrObj)
>
> Both the CutObj and CurrObj are declared object variables. I comment out
> the line and the program compiles fine. Substitute the overlap command
> with
> the erase command and it compiles fine.
>
> I even did a double erase command to get the overlap, and the program
> compiled and almost worked, except it left spikes in the data:
> CurrObj = Erase(CutObj,CurrObj)
> CutObj = Erase(CutObj,CurrObj)
>
> Wierdest thing is that I use the following line elsewhere in the program:
> Buff = Overlap(Buff,Poly) and it compiles and runs fine.
>
> Any leads on what is going on? Should I give up and go a learn java or C
> or
> how to pull beers at a bar?
>
> TIA
> R
>
>
> Robert Crossley
> Whats Here
> 10 Trinity Street
> Parramatta Park
> CAIRNS 4870
> AUSTRALIA
> LAT:16.928569S LONG:145.769107E
>
> Ph 40314877
> F 40314810
> M 0419 718642
> E [EMAIL PROTECTED]
>
>
>
> _______________________________________________________________________
> List hosting provided by Directions Magazine | www.directionsmag.com |
> To unsubscribe, send e-mail to [EMAIL PROTECTED] and
> put "unsubscribe MapInfo-L" in the message body.
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.