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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
cypren
Wanderer


Joined: 03 Nov 2000
Posts: 59

PostPosted: Sat Feb 10, 2007 7:17 pm   

[1.24] Local variables cannot be direct params to %query
 
The topic pretty much says it all.

Code:
%query((&id=$myLocalVar),MyDB)

will return blank, but
Code:
#VAR @myRealVar $myLocalVar
%query((&id=@myRealVar),MyDB)

works just fine.

So does:
Code:
#FUNCTION myFunction {%query((&id=%1),MyDB)}
@myFunction($myLocalVar)
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sat Feb 10, 2007 10:03 pm   
 
Confirmed.
_________________
Asati di tempari!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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