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 

SB_SetText Bug

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
TodWulff



Joined: 29 Dec 2007
Posts: 99

PostPosted: Mon Apr 14, 2008 3:12 am    Post subject: SB_SetText Bug Reply with quote

[EDIT] This thread can be closed. I found the guidance confirming that this is expected operation. Please disregard this errorneous bug report.[/EDIT]

I've found what I consider to be a bug.

If there is a space between SB_SetText and the opening paren, the construct simply doesn't affect the change.

i.e. the following fails:

Code:
SB_SetText ( " " . TgtDevice%Selected_Target% . " on COM" . TgtPrtNum%Selected_Target% . " Selected.", 4)


But this works:

Code:
SB_SetText( " " . TgtDevice%Selected_Target% . " on COM" . TgtPrtNum%Selected_Target% . " Selected.", 4)


Just wanted to add it to the list of things to look at for the next release.

Thanks.

-t
_________________
When replying, please feel free to address me as Tod or t. My AHK.net site...


Last edited by TodWulff on Mon Apr 14, 2008 3:47 am; edited 3 times in total
Back to top
View user's profile Send private message
TheIrishThug



Joined: 19 Mar 2006
Posts: 347

PostPosted: Mon Apr 14, 2008 3:26 am    Post subject: Reply with quote

I've seen this mentioned before. A space between a function name and the open parentheses does not result in a call to the function. I forget what it actually does, but I think it's something like it treats the function name as a variable and the rest as part of an expression. Not Positive.
Back to top
View user's profile Send private message Visit poster's website AIM Address
TodWulff



Joined: 29 Dec 2007
Posts: 99

PostPosted: Mon Apr 14, 2008 3:31 am    Post subject: Reply with quote

So, am I to understand that this characteristics is consistent across (User/Built-in/All) functions?

I am surprised and I am coding up quite an elaborate IDE and this is the first time it has bit me. Maybe I have been lucky to date...Wink

-t
_________________
When replying, please feel free to address me as Tod or t. My AHK.net site...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    AutoHotkey Community Forum Index -> Bug Reports 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