AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

If SubStr(VALUE, 0) = x

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
rousni



Joined: 23 Mar 2006
Posts: 41

PostPosted: Mon Oct 08, 2007 11:47 am    Post subject: If SubStr(VALUE, 0) = x Reply with quote

Why this doesn't work:

Code:
VALUE = blablax
If SubStr(VALUE, 0) = x
   SoundBeep


Thanks
Back to top
View user's profile Send private message
Superfraggle



Joined: 02 Nov 2004
Posts: 846
Location: London, UK

PostPosted: Mon Oct 08, 2007 12:14 pm    Post subject: Reply with quote

because it should be

Code:
VALUE = blablax
If SubStr(VALUE, 0) = "x"
   SoundBeep


The function call forces expression type evaluations.
_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group