Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
dntc
Newbie


Joined: 20 Jul 2002
Posts: 4
Location: China

PostPosted: Tue Oct 15, 2002 5:56 am   

help me please
 
If I have a variable that include ANSI control codes(e.g. string_1string_2),how can I get string_1 or string_2 from variable(split variable)?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Oct 15, 2002 7:01 pm   
 
The simplest answer would be to put them in different variables to start with.

Otherwise, you'll have to figure out some way of telling where string_1 ends and string_2 begins. ANSI control codes start with the escape character, you might be able to use that in conjunction with some of the string functions, such as %word or %pos.

LightBulb
Senior Member
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion 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

© 2009 Zugg Software. Hosted by Wolfpaw.net