Modify ↓
Opened 14 years ago
Closed 14 years ago
#2113 closed Bug (Fixed)
AU3Check misinterprets some object's property names as AI keywords
| Reported by: | jchd | Owned by: | trancexx |
|---|---|---|---|
| Milestone: | 3.3.9.0 | Component: | Au3Check |
| Version: | 3.3.8.0 | Severity: | None |
| Keywords: | keywords object property | Cc: |
Description
AU3Check raises an error on object's property names which are also (some but not all) AutoIt keywords like: For, In, Step, While, ElseIf, etc.
Some keywords don't raise the error: Next, EndIf, Wend, etc.
To use problematic keywords as property name, append parenthesis after the name, just as if it was a method e.g. $self.Step(). This works AFAIK.
#include "autoitobject.au3"
_AutoItObject_Startup()
Local $oTest = _test()
ConsoleWrite($oTest.Step & @LF)
Func _test()
Local $class = _AutoItObject_Create()
_AutoItObject_AddProperty($class, "Step", $ELSCOPE_PUBLIC, "Sample 'Step' property value")
Return $class
EndFunc
Discussed here: http://www.autoitscript.com/forum/topic/136895-parsing-propertiesmethods-named-as-some-autoit-keywords/page__view__findpost__p__957390
Attachments (0)
Change History (1)
comment:1 by , 14 years ago
| Milestone: | → 3.3.9.0 |
|---|---|
| Owner: | changed from to |
| Resolution: | → Fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Fixed by revision [6725] in version: 3.3.9.0