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
Reddytedy
Apprentice


Joined: 13 Oct 2000
Posts: 114
Location: USA

PostPosted: Mon Jan 27, 2003 8:45 am   

Need help replacing
 
I need help on replacing a changing number of whitespaces with one space.

my variable has this in it

some..........rosewood........bones.........

Now the number of spaces changes depending on the length of the words in each field.

Any way I can replace those with just one space?

Alan

Come play with us in Dragonrealms

http://www.play.net/dr
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Jan 27, 2003 1:13 pm   
 
#VAR myVar {%replace(@myVar, " ", "|")}
#DELITEM myVar %null
#VAR myVar {%replace(@myVar, "|", " ")}

Kjata
Reply with quote
Reddytedy
Apprentice


Joined: 13 Oct 2000
Posts: 114
Location: USA

PostPosted: Mon Jan 27, 2003 7:39 pm   
 
Once again you show me something I never thought about, thanks Kjata

Alan

Come play with us in Dragonrealms

http://www.play.net/dr
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