| View previous topic :: View next topic |
| Author |
Message |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Tue Apr 29, 2003 12:59 pm Post subject: Lists (can they be made to put things on then next line?) |
|
|
| If i had a list that is say 100 chars in length and i have a variable containg something 150 chars long. How can I make it so that when the variable is added to the list it adds the first 100 to one line then the next 50 to the next? |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Tue Apr 29, 2003 2:18 pm Post subject: |
|
|
You can use this code for it...
| Code: | DIALOG CREATE,New Dialog,-1,0,240,160
DIALOG ADD,LIST,LIST1,8,18,180,144
DIALOG SHOW
%%text = abcdefghijklmnopqrstuvwxyz
%%splitat = 10
repeat
list add,list1,@substr(%%text,1,%%splitat)
%%text = @strdel(%%text,1,%%splitat)
until @greater(%%splitat,@len(%%text))
list add,list1,%%text
wait event |
_________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Tue Apr 29, 2003 5:37 pm Post subject: |
|
|
| Thank you |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
|
|
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 can attach files in this forum You can download files in this forum
|
|