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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
whorn
Wanderer


Joined: 04 May 2002
Posts: 52
Location: USA

PostPosted: Wed Jul 10, 2013 12:34 am   

Passing Variable to #launch
 
I'm trying to pass a URL variable to #launch. The variable is similar to:

http://url/file.php?person=Name&str=19&int=20

The problem is I need to pass it as if it were quoted:

"http://url/file.php?person=Name&str=19&int=20"

However is I do something like:

#launch "@URL"

Then it doesn't expand it, but I can't find any other way to pass the URL and the quotes so that the script I'm passing it through takes as a single parameter. They have to be double quotes as single quotes don't seem to work.

Any ideas?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Jul 10, 2013 2:29 pm   
 
CMud looks for double quotes in pairs, and when it finds such a pair everything thing between them is regarded as literal. Try using ~".
_________________
EDIT: I didn't like my old signature
Reply with quote
whorn
Wanderer


Joined: 04 May 2002
Posts: 52
Location: USA

PostPosted: Wed Jul 10, 2013 2:35 pm   
 
That worked great. I had just thought of that earlier before I read your post but just now got to try it out. Not sure why I didn't think of it before.

Thanks!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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