realbasic-nug
[Top] [All Lists]

Re: EditField with listbox help

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: EditField with listbox help
From: MacMuse at aol dot com
Date: Thu, 28 Feb 2002 16:29:36 EST
In a message dated 2/28/02 4:27:12 PM, phillipwarner at shaw dot ca writes:

<< Right now in my program when someone selects a row in the listbox it
will display the information in the editfield but how do it get it so
that when the person deselects the row the editfield goes clear again
instead of holding the information even when the row isn't selected
 >>

In the change event of your ListBox

If me.ListIndex = -1 then
   EditField1.text = ""
end if

HTH 

Roger M. Clary
MacMuse Software
Educational Software for Macs and PCs
http://www.macmuseSW.com 


<Prev in Thread] Current Thread [Next in Thread>
  • Re: EditField with listbox help, MacMuse <=