Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Benny Thomas
  Where is Benny Thomas?
 Jeddah
 Saudi Arabia
 Benny Thomas
 To: Eric den Doop
  Where is Eric den Doop?
 Houten
 Netherlands
 Eric den Doop
 Tags
Subject: RE: Thanks Mr. Eric
Thread ID: 33375 Message ID: 33598 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Forms
Date: Saturday, November 29, 2003 9:46:05 PM         
   


Thank you very much Mr. Eric.

Benny


> > I know how to add items to a List box using the AddItem method when there is only one column. How can I add items to a list box when there are more than one column in the list box. When I add values, only one column is filled and the rest are blank.
> >
> > Thanks for help.
> >
> > Benny
>
> Here's some sample code:
>
> thisform.list1.ColumnCount = 2
> FOR lnCount = 1 TO 10
> 	lcCount = TRANSFORM(lnCount)
> 	thisform.list1.AddItem("Column 1 Row: &lcCount", lnCount, 1)
> 	thisform.list1.ListItem(lnCount, 2) = "Column 2 Row: &lcCount"
> ENDFOR
> 

> --
> Eric den Doop
> www.foxite.com - The Home Of The Visual FoxPro Experts


ENTIRE THREAD

Help needed on AddItem method for List box Posted by Benny Thomas @ 11/25/2003 4:48:28 PM
RE: Help needed on AddItem method for List box Posted by Eric den Doop @ 11/25/2003 5:03:37 PM
RE: Thanks Mr. Eric Posted by Benny Thomas @ 11/29/2003 9:46:05 PM