realbasic-nug
[Top] [All Lists]

Re: How to go from Window.Control to Window.Control.AddRow

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: How to go from Window.Control to Window.Control.AddRow
From: Emile Schwarz <emile dot schwarz at wanadoo dot fr>
Date: Wed, 30 Jul 2003 09:22:36 +0200
Hi Bill,

I create a brand new project, add a ListBox and add two PushButtons,.

In the first PushButton I put ListBox1.AddRow "It's a brand new row."
In the second PushButton I put the code below and it works.

Now I have to incorporate it (back) to my main project and pray for it to work.

Thanks,

Emile


Subject: Re: How to go from Window.Control to Window.Control.AddRow
From: "Bill Johnson" <billj at mac dot com>
Date: Tue, 29 Jul 2003 00:24:56 -0700

On Sunday, July 27, 2003, at 11:38 PM, Emile Schwarz wrote:


<some part snipped>

Something's funny going on because it ran here. So does this.
   Dim c As Control
   Dim lbsize As Integer

   c = ListBox1
   If c IsA ListBox Then
     lbSize = ListBox(c).ListCount
     msgBox str(lbSize)
   Else
     // Not a ListBox
   End If





---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
.


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