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 


Array Command

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 5 Source Code
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Aug 06, 2003 6:43 pm    Post subject: Array Command Reply with quote

Hello all. Here is a command called Array. Based on a sub originaly created by cnodnarb.

Code:

# Array sub created by cnodnarb turned into a command

# Useage:
# Array <List(Must already exist)>,<delimiter>,<string>

# Returns <List> with string itemized according to <delimiter>
# Resets fieldsep back to original when finished.
#---------------------------------------------------------------------

#define command,array

:array
%t = @fsep()
option fieldsep,%2
list clear,%1
repeat
  parse "%a;%b",%3
  %%remainder = @substr(%3,@sum(@len(%a),2),@len(%3))
  if %a
     list add,%1,%a
     %3 = %%remainder
  end
until @null(%a)
list seek,%1,0
option fieldsep,%t
exit

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Wed Aug 27, 2003 6:01 pm    Post subject: Reply with quote

That's what I need... thanks!

Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 5 Source Code 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