how listing record in a listbox

aru

Member
hi

ListboxView1.Clear
For i=0 to Reader.FieldCount-1
ListboxView1.Add(Reader.GetValue(i))
Next

this is my code iwant to list three record in alist box
like this

student|address|phone

is it possible?

can you help me?
Aru
 

mjcoon

Well-Known Member
Licensed User
I imagine that you want to display three fields from a single record/row.

In which case the code might be
B4X:
ListboxView1.Add(Reader.GetValue(0) & "|" & Reader.GetValue(1) & "|" & Reader.GetValue(2))
if those fields are numbers 0, 1 and 2.

HTH, Mike.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…