| View previous topic :: View next topic |
| Author |
Message |
TodWulff
Joined: 29 Dec 2007 Posts: 99
|
Posted: Mon Apr 14, 2008 3:12 am Post subject: SB_SetText Bug |
|
|
[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 |
|
 |
TheIrishThug
Joined: 19 Mar 2006 Posts: 347
|
Posted: Mon Apr 14, 2008 3:26 am Post subject: |
|
|
| 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 |
|
 |
TodWulff
Joined: 29 Dec 2007 Posts: 99
|
Posted: Mon Apr 14, 2008 3:31 am Post subject: |
|
|
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...
-t _________________ When replying, please feel free to address me as Tod or t. My AHK.net site... |
|
| Back to top |
|
 |
|