Opened 12 years ago

Closed 12 years ago

#2113 closed Bug (Fixed)

AU3Check misinterprets some object's property names as AI keywords

Reported by: jchd Owned by: trancexx
Milestone: Component: Au3Check
Version: Severity: None
Keywords: keywords object property Cc:


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"


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

Discussed here:

Attachments (0)

Change History (1)

comment:1 Changed 12 years ago by trancexx

  • Milestone set to
  • Owner changed from Jos to trancexx
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [6725] in version:

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.

Add Comment

Modify Ticket

as closed The owner will remain trancexx.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.