At 12:40 PM -0700 4/10/06, Peter Truskier wrote:

The following snippet compiles and works correctly in RB 5.X - 2006r1, but results in a compiler error - "this method does not exist" - on "err = SetUserFocusWindow(-1)" (i.e., in the "else" code):

Why do you think you can declare two functions with the same name? It's not in a #if block, and the scope of a declare statement is not restricted to the code block it's in, unlike a Dim statement, at least AFAIK.

If you comment out the first declare, then the second one works just fine, so I'd call it a bit of a fluke that it ever worked at all. To do what you're trying to do, you'll have to give one of the declares a different name (via the Alias clause).

HTH,
- Joe

--

Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to