Form Level Variable Scope

  1. 8 months ago

    Jim L

    15 Jan 2019 Pre-Release Testers, Xojo Pro

    Need some guidance migrating from VB.

    1) How do I scope variables at the Form or module level? I saw the scope referenced in a tutorial but can't find where the IDE allows me to do this.

    2) Is there a way for me to see all the code in a form at once?

    thanks

  2. Tim P

    15 Jan 2019 Pre-Release Testers Rochester, NY

    #1 - You can change the scope of the selected item by changing the PopupMenu labeled "Scope" in the properties inspector on the right. You can also change multiple items at once by selecting them and right-clicking, if you've only selected scopable(?) items then there will be a "Scope" item in the contextual menu.

    #2 - Yes, if you save the project as Text you can view the code on the Window by opening the WindowName.xojo_code text file.

  3. Jim L

    15 Jan 2019 Pre-Release Testers, Xojo Pro

    Thanks I'll give it a shot.

or Sign Up to reply!