Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Listbox Read item by item?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Wed Nov 21, 2007 8:49 am    Post subject: Listbox Read item by item? Reply with quote

got it
_________________
dont complain about my english...
1*1 = 2?


Last edited by ups2000ups on Wed Nov 21, 2007 9:44 am; edited 3 times in total
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Wed Nov 21, 2007 9:03 am    Post subject: Reply with quote

Create an array from the listbox, then loop through it. Or, simply loop through the array.

Here's some Delphi, since I think that's what you're working in

Code:

var
    i : integer;
    : //These mean that you can have other stuff too, it's just important to have the i : integer;
    :

begin
     :
     :
     for i := 0 to listbox1.count-1 do //I think that's how you do how many items in a listbox
             edit1.Text := edit1.Text + listbox1[i];
     :
     :
end;
Back to top
View user's profile Send private message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Wed Nov 21, 2007 9:05 am    Post subject: Reply with quote

samuri25404 wrote:
Create an array from the listbox, then loop through it. Or, simply loop through the array.

Here's some Delphi, since I think that's what you're working in

Code:

var
    i : integer;
    : //These mean that you can have other stuff too, it's just important to have the i : integer;
    :

begin
     :
     :
     for i := 0 to listbox1.count-1 do //I think that's how you do how many items in a listbox
             edit1.Text := edit1.Text + listbox1[i];
     :
     :
end;


i dont whant to know how many strings it is i whant to know how to get the 1/2/3 string and paste the text to an edit box
and yes delphi is the lg =p

_________________
dont complain about my english...
1*1 = 2?
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Wed Nov 21, 2007 11:34 am    Post subject: Reply with quote

Yeah, that's what it does.

Though, I think what it should be is this instead:

Code:

for i := 0 to listBox1.Count do
       edit1.Text := edit1.Text + listBox1.Items[i];


What it does is loops through the items in the list box, and adds them one by one to the text box.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites