gettingstarted
[Top] [All Lists]

RE: Reading in text from a file into a ListBox with 2 columns

To: "'Getting Started'" <gettingstarted at lists dot realsoftware dot com>
Subject: RE: Reading in text from a file into a ListBox with 2 columns
From: "POIDINGER, Michael [JJRAU]" <MPOIDING at MEDAU dot JNJ dot com>
Date: Mon, 31 Jan 2005 13:04:53 +1100
Delivered-to: gettingstarted at lists dot realsoftware dot com
> >> I titled the new Class as "PlistClass" and now it has four methods:
> >> concatenateRow, getPlist, savePlist and writeToTextFile.  All are 
> >> declared Public access.
> >>
> >> I need to call getPlist from App/Event/Open but the 
> debugger tells me 
> >> getPlist does not exist, even though I use
> >> "PlistClass.getPlist"   What
> >> am I missing?
> >>
> >> Thanks,
> >>
> >> Paul
> >
> > You have to have an instance of the class somewhere.  It is also 
> > unlikely to exist at the app.open event.
> >
> > 1) Make sure the super of your new class is set to ListBox
> It is.
> > 2) Either drag your new class to a window or select a 
> listbox in your 
> > window and reset it's super to PlistClass
> I did.
> > 3) In the open even of the window, do your stuff
> > mylistboxwithplistclassassuper.getPlist()
> Yep.  And it acts as if it is not there.
> 

Can you be more specific?  In the open event of the window, does the name of
your listbox not auto complete?

It will not be visible from the app event without prefexing the window
window.listbox.method

Mike
_______________________________________________
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>