The Daily Click ::. Forums ::. Klik Coding Help ::. Loading Ini plus contents into a list object?
 

Post Reply  Post Oekaki 
 

Posted By Message

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
12th March, 2011 at 02:10:09 -

Hello,

Is it possible to load the contents of an Ini plus object into a list object one line at a time?

Say my ini contains:

[DATA]
Chris=$50
Tom=$99
Ross=$210

How do I make a list object display:

Chris=$50
Tom=$99
Ross=$210

Any help would be amazing! Thanks xxxxxxxxx

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
12th March, 2011 at 04:27:23 -

The string parser can load text files directly into memory
The edit box can load files into it's input field (enable multiline, and make it hidden)

Use either of the above options and use a loop to iterate through the file (starting at the 2nd line)
and add each line to the list one by one.

If you need more help I'm sure another user can make you an example.

 
n/a

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
12th March, 2011 at 04:41:01 -

Thanks!

I'd really like to use the list object so I can have the user click on a line and then click a delete button. Deleting it from the ini and in turn the list. If you or anybody could make a short example file that would be wonderful.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click