Modify ↓
Opened 13 years ago
Closed 13 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 Changed 13 years ago by trancexx
- Milestone set to 3.3.9.0
- Owner changed from Jos to trancexx
- Resolution set to Fixed
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
Fixed by revision [6725] in version: 3.3.9.0