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
r00t
Newbie


Joined: 09 May 2002
Posts: 0

PostPosted: Mon Apr 08, 2002 3:29 pm   

Replacing/Deleting text in a Variable
 
I've got a small one line problem.

I've stored text in a variable say

#VAR blam somethingwrittenhere..(yup)

I'd like to to replace the "..(yup)" with nothing.
I've tried a couple things I was hoping someone could help me get the syntax right.
Reply with quote
Kaputchnik
Beginner


Joined: 06 Jan 2002
Posts: 28
Location: Sweden

PostPosted: Mon Apr 08, 2002 4:16 pm   
 
Try:
#VAR blam somethingwrittenhere..(yup)
and to replace the "..(yup)" part with nothing
#var blam %replace(@blam,"..~(yup~)","")

This will get you the string somethingwrittenhere in @blam variable

Cheers,
Kaputchnik
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