Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LISTBOX SIMPLE PROBLEM

Status
Not open for further replies.

TrueCode

MIS
Sep 30, 2003
71
LC
I have a listbox where i want use additems method to additems into three columns on the listbox. This is what I did

Code:
this.cousins.Clear  && removing existing items 

SCAN WHILE !EOF()
	disrow = RECNO() &&this.cousins.ListCount + 1
	part1 = PADR(ALLTRIM(tempcard.fname),20,[ ])
	part2 = PADR(ALLTRIM(tempcard.lname),20,[ ])
	part3 = PADR(ALLTRIM(STR(tempcard.totbal,10,2)),10,[ ])
	
	this.cousins.addlistItem(part1,disrow,1,part2,disrow,2,part3,disrow,3)
	
	
ENDSCAN

------------------------------------->

"I have sought your assistance on this matter because I have exhausted all the help that I can find. You are free to direct me to other source of help"
 
Take a look at this faq. It has an example using multi-column listboxes.

faq184-4322 Programmatically Loading & Referencing Listbox Items

Jim Osieczonek
Delta Business Group, LLC
 
Jimbo, thanks alot. It worked


------------------------------------->

"I have sought your assistance on this matter because I have exhausted all the help that I can find. You are free to direct me to other source of help"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top