forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Lists (can they be made to put things on then next line?)

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Tue Apr 29, 2003 12:59 pm    Post subject: Lists (can they be made to put things on then next line?) Reply with quote

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Apr 29, 2003 2:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Tue Apr 29, 2003 5:37 pm    Post subject: Reply with quote

Thank you
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Apr 29, 2003 5:38 pm    Post subject: Reply with quote

No thanks, that's why I'm here for... Wink
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
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 can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group