Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

how listing record in a listbox

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-15-2010, 08:12 AM
aru aru is offline
Junior Member
 
Join Date: Feb 2010
Posts: 24
Default how listing record in a listbox

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
Reply With Quote
  #2 (permalink)  
Old 03-15-2010, 10:04 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 762
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I imagine that you want to display three fields from a single record/row.

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

HTH, Mike.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
first record is selected automatically to delete aru Questions (Windows Mobile) 2 03-15-2010 03:24 PM
Listing installed apps and uninstalling them N1c0_ds Questions (Windows Mobile) 2 11-28-2008 01:19 PM
Copy Record from one database to another database. mozaharul Questions (Windows Mobile) 0 07-15-2008 05:47 AM
table record Maxium scott93727 Questions (Windows Mobile) 1 05-27-2008 10:46 AM
.NET CF to .NET F Compatible listing Cableguy Questions (Windows Mobile) 4 08-06-2007 06:30 PM


All times are GMT. The time now is 03:24 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0