Yes, thanks, Ahmet. The func. Is, indeed, thus declared, in another module. I'd overlooked prototyping it in the subject module, and this was the first error I'd had on it.
-----Original Message----- From: Ahmet Dabanli [mailto:[EMAIL PROTECTED] Sent: 20 October 2005 05:58 To: Terry McDonnell Subject: Re: MI-L SON OF: Save me from pulling the rest of my hair out Program could not find the function ThisWinExists( gnWalkLegID) You should declare and write it correctly Declare Function ThisWinExists( byval WinID as integer ) as logical Function ThisWinExists( byval WinID as integer ) as logical ..... end Function ----- Original Message ----- From: "Terry McDonnell" <[EMAIL PROTECTED]> To: "[EMAIL PROTECTED]" <mapinfo-l@lists.directionsmag.com> Sent: Wednesday, October 19, 2005 5:56 PM Subject: MI-L SON OF: Save me from pulling the rest of my hair out Dearest List The following code gives me 2 errors: - Expecting then - unrecognised command (. ... on the 2nd if statement. I'd added an extra line or 2 to the function, but took them out, and still get the errors. The fn. returns logical. If gnWalkLegID > 0 then If ThisWinExists( gnWalkLegID) then Close window gnWalkLegID ' If there's a Walk distances legend window up, close it End If End If What gives???!!! 'ppreciate it Terry McDonnell --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 18394 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 18402