mIRC Home    About    Download    Register    News    Help

Print Thread
#138696 05/01/06 01:08 AM
Joined: Jun 2005
Posts: 127
H
HAMM3R Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jun 2005
Posts: 127
Hey. I have a editbox in my dialog with the properties multi and return. But when I try to retrieve the text inside it with $did($dname,ID) i only can get the first line in the editbox. Can someone tell me how to get it all? Thanks.


-- HAMM3R (aka: alhammer)
http://www.HAMM3R.net
#138697 05/01/06 02:03 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Use $didtok($dname,ID,character)
eg: $didtok($dname,1,44) will return the list of items in ID 1 with each item being separated by a comma.

Please note that this will NOT work if you only have one item in the ID

#138698 05/01/06 02:07 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
You can store the text from each line individually, either with a loop, or to individual variables.

Code:
var %text, %c = 0, %cc = $did($dname,[color:red]id[/color]).lines
while (%c < %cc) {
  inc %c
  %text = %text $did($dname,[color:red]id[/color],%c)
}


*untested code

-genius_at_work

Last edited by genius_at_work; 05/01/06 02:08 AM.
#138699 05/01/06 02:31 AM
Joined: Jun 2005
Posts: 127
H
HAMM3R Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jun 2005
Posts: 127
Thanks, this worked. I played with your original $did($dname,ID,0) for a while. I was about to post that I couldnt get it to work when i saw your edit. :tongue:


-- HAMM3R (aka: alhammer)
http://www.HAMM3R.net

Link Copied to Clipboard