[EMAIL PROTECTED] wrote:

Subject: Re: RE: my silly listbox
From: <[EMAIL PROTECTED]>
Date: Tue, 15 Aug 2006 8:10:48 -0400

I have tried putting the addrow inside the loop...
at the beginning and end of the loop statement...
and nothing...

AARGH....

<smile>
From: "Walter Purvis" <[EMAIL PROTECTED]>
Date: 2006/08/14 Mon PM 09:30:29 EST
To: "'REALbasic NUG'" <[email protected]>
Subject: RE: my silly listbox



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Johnson
Sent: Monday, August 14, 2006 8:17 PM
To: REALbasic NUG
Subject: Re: my silly listbox


On 14-Aug-06, at 5:03 PM, [EMAIL PROTECTED] wrote:
>
> Here is my code....
>
> after it runs I am left with the number 20 in what I would call cell > 0,1
>
> Regards
>
> ========================
>   dim i as integer
>   me.HasHeading=true
>
>   me.heading(0)="Heading1"
>   me.Heading(1)="heading2"
>
>   me.addrow""
>
>   for i = 1 to 20
>     me.Cell(0,0)=str(i)
>   next i

Since:

>     me.Cell(0,0)=str(i)

THE IMPORTANT PART HERE IS 0,0

you always fills the same Cell, what are you awaiting ?

Changing the AddRow is nice (mandatory), but:

For i = 1 To 20
 // Add a brand new Row
 Me.AddRow ""

 // Get the just added Row #
 locRow = Me.ListIndex

 // Add the Index value
 Me.Cell(i,0) = str(i) // *

 // Place here a more usefull code
Next



* Totally useless, but if it let you understand...

will do something.

BTW: did you read the ListBox Control entry in the Language Reference ?

Cheers,

Emile

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

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

Reply via email to