- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm attempting to write a class in Ilogic because I need to store multiple pieces of information associated with a single item. I attempted and Ilogic is fully capable of declaring a class. However, I'm having difficulty accessing properties inside of it. Because the properties are by default private I attempted to go through and write the standard get, let, and set procedures to access them.
That's where the issues really started. Ilogic would throw the error that Get/Let/ Set were no longer supported and use the new property access syntax. So I tried looking it up and it said to properly define it in the block and end with End Get or End Set (Let seems to have been eliminated entirely. So I attempted that as well but then it throws the error "End Property must be preceded by a matching 'Property'" even though property is already declared in there. It also states that End Get/Set must be preceded by Get/Set even though if I add those back in it simply errors again, saying they are no longer supported.
It also continuously says declaration expected and that auto implement properties cannot have parameters.
SyntaxEditor Code Snippet
Public Class ZBracketBreak Private pStart As Double Private pLength As Double Private pAnchor As Boolean Public Property Start() As Double Start = pStart End Property Public Property Start(Value As Double) pStart = Value End Property Public Property PropertyLength() As Double Length = pLength End Property Public Property Length(Value As Double) pLength = Value End Property Public Property Anchor() As Boolean Anchor = pAnchor End Property Public Property Anchor(Value As Boolean) pAnchor = Value End Set End Class
Thank you,
Thomas Long
Solved! Go to Solution.