--- Robert Poland <[EMAIL PROTECTED]> wrote:
> Apparently I've dug myself into a hole. > > The only way I could get the Event Handler"Open Document" was > to > create a new Module and Class. Now the Drag & Drop code works > to the > point where I need as method to process the text. > > This method resides in Window1, where it works fine. > > However if I call it I get an error, "This method or property > does > don exist". > > I seem to recall there was a way to call another module but I > can't > seem to find it now. Did you prefix the method name with "Window1."? You have to tell the compiler which object you are working with before you can use any of the methods defined for that object. The only exceptions are: 1) Modules give you the option of defining methods as "Global," meaning they can be called from anywhere without, say, "Module1." tacked on the front, and 2) Within the object itself, you don't need to prefix the method name with the name of the object--it's assumed. (By "object" I mean any window, class, module, control, etc. If you can define a method in it, it's an object and has a name. To use the method, prefix the method name with the object name plus a dot. Mark Nutter Quick and easy regex creation and debugging! http://www.bucktailsoftware.com/products/regexplorer/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ 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>
