Form Level Variable Scope

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

#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.

Thanks I’ll give it a shot.