Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VAR statements outside the method raise errors #102

Open
eglekaz opened this issue Dec 4, 2024 · 0 comments
Open

VAR statements outside the method raise errors #102

eglekaz opened this issue Dec 4, 2024 · 0 comments

Comments

@eglekaz
Copy link

eglekaz commented Dec 4, 2024

VAR statements can be used to define class properties as well. Now we are getting full statement as an error if it is in the class but outside of the method.
Example:

class FunkyWorld.Util.KittyLogHelper:

    var private int64 MAX_RECORDS = 5.
    var protected int64 DEFAULT_SIZE = 20.

    var public char SomeName.
    
    method private void SnuggleDataset(table-handle dsCuddlePuddle bind):
       VAR myclass myobj = NEW myclass("Progress",2021,?).
    end method.
end class.

Documentation: https://docs.progress.com/bundle/openedge-develop-abl-applications/page/Learn-about-the-VAR-statement.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant