gettingstarted
[Top] [All Lists]

Generic methods

To: <gettingstarted at lists dot realsoftware dot com>
Subject: Generic methods
From: "Scott Slaugh" <xslaugh at hotmail dot com>
Date: Mon, 25 Oct 2004 11:26:21 -0600
Delivered-to: gettingstarted at lists dot realsoftware dot com
  First, thanks to those who helped me with the screen flickering issue.  I was 
able to get that one solved.
  I am now trying to simplify chaning my program.  I have a method that I want 
to be able to call from several different windows that changes the numbers in 
some fields on that window.  So, I created this method and put it in my app:

Protected Sub changeNums(cWindow as window)
  cWindow.numbers1.text=""
end sub

In my window script, I put the following in the open method:

app.changeNums(self)

However, when I try to run the program, the compiler selects numbers1 from the 
changeNums method and tells me that This Method or Property does not Exist.  Is 
there some way I can get this to work out so that I don't have to hard code 
this in each window?

Scott Slaugh
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

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

<Prev in Thread] Current Thread [Next in Thread>