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 11:19:14 +1100
Delivered-to: gettingstarted at lists dot realsoftware dot com
> 
> Phil,
> 
> 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
2) Either drag your new class to a window or select a listbox in your window
and reset it's super to PlistClass
3) In the open even of the window, do your stuff
mylistboxwithplistclassassuper.getPlist()

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>