Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Reading ini file values into a combox-list


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-14-2007, 09:18 PM
Junior Member
 
Join Date: Jun 2007
Location: South Africa
Posts: 40
Awards Showcase
Beta Tester 
Total Awards: 1
Default Reading ini file values into a combox-list

Hi Mastercoders,
I am wanting to transfer values from a ini file into a combobox-list
I am attaching my attempt
Any better ideas

I am Finaly getting the hang of Basic4PPC, being self schooled on BBC Basic back in the eighties, this event driven concept is new to me.

Thanks for all your help
Friedrich
Attached Files
File Type: zip read ini into combobox-list.zip (841 Bytes, 12 views)
Reply With Quote
  #2 (permalink)  
Old 11-14-2007, 09:58 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 672
Default

Hi Softselect,

I don't know if it's a really better idea, but I would change your code to:
Code:
...
FileOpen(c2,"ring.ini",cRead)
ring=FileRead(c2)
Do While ring <> EOF	     'loop to read till end of file
    sizepick.Add(&ring)       'adds string of ring to list
    ring=FileRead(c2)
    'Msgbox(ring,"value")     'used for debug
Loop 
FileClose(c2)
...
so you don't need to exit the do...loop manually.


specci48
Reply With Quote
  #3 (permalink)  
Old 11-15-2007, 04:41 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
Default

Why do you add & before ring?
Code:
sizepick.Add(&ring)
If you are working on the desktop you can set a breakpoint instead of using a msgbox.
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
drive, file list boxes scott93727 Basic4ppc Wishlist 0 06-22-2008 02:35 AM
Colour Values Zenerdiode Questions & Help Needed 2 05-20-2008 06:01 AM
Reading config file Mr_Gee Questions & Help Needed 6 03-15-2008 12:00 PM
How to convert Hex values in file to number or string HARRY Questions & Help Needed 2 02-20-2008 05:04 PM
Wrong values on GPS Roadrunner Bug Reports 1 01-31-2008 08:10 PM


All times are GMT. The time now is 02:17 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0