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
emnaki
Wanderer


Joined: 12 May 2007
Posts: 59

PostPosted: Fri Aug 03, 2007 8:17 am   

Is this expected behaviour?
 
Code:

#WIN Social @value


Why doesn't this work?
Reply with quote
emnaki
Wanderer


Joined: 12 May 2007
Posts: 59

PostPosted: Fri Aug 03, 2007 8:30 am   
 
Ok it seemed that the problem was that autotype didn't see

emote Lalarue stares blankly at nowhere in particular.

as a string. It works when I specified the variable type to be a string literal.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri Aug 03, 2007 9:20 am   
 
Autotype shouldn't be causing this problem (and, indeed, isn't for me on a blank session). Can you reproduce it with a blank session?
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
emnaki
Wanderer


Joined: 12 May 2007
Posts: 59

PostPosted: Sat Aug 04, 2007 3:45 pm   
 
Ops, it seems the problem was that the value which I thought to be a string came from a database extracted using ADO: @rs.Fields("col").Value. How do I convert this variable to a string?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Aug 04, 2007 5:43 pm   
 
The %string function might be what you want, but it depends on what the value is. If that doesn't work, you might need to write a converter.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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