Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Microsoft PowerApps

You're reading from   Learn Microsoft PowerApps Build customized business applications without writing any code

Arrow left icon
Product type Paperback
Published in Nov 2019
Publisher Packt
ISBN-13 9781789805826
Length 560 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Matthew Weston Matthew Weston
Author Profile Icon Matthew Weston
Matthew Weston
Arrow right icon
View More author details
Toc

Table of Contents (25) Chapters Close

Preface 1. Section 1: Getting Started with PowerApps FREE CHAPTER
2. Introducing PowerApps 3. Creating Your First Canvas PowerApp 4. Creating Apps from SharePoint 5. Publishing and Leveraging PowerApps 6. Section 2: Developing Your PowerApp
7. Exploring Controls 8. Exploring Formulas 9. Working with Data 10. Introducing Connectors 11. Section 3: Extending the Capabilities of Your PowerApp
12. Using GPS in PowerApps 13. Working with Images and Barcodes 14. Securing Your PowerApps 15. Working Offline 16. Using Power Automate with PowerApps 17. Using Azure with PowerApps 18. Section 4: Working with Model-Driven Apps
19. Introducing Model-Driven Apps 20. Creating Model-Driven Apps 21. Section 5: Governing PowerApps
22. Exploring Environments within Our Tenancy 23. Assessments 24. Other Books You May Enjoy

Variables

Variables are a fundamental part of any development approach, regardless of whether you are using PowerApps or you are developing using a programming language. They are used to store temporary copies of data so that they can be consumed by other areas of your app.

All variables are defined by boundaries from which they can be accessed; that is, we can create variables that can only be accessed within a single screen or that can be accessed throughout the app. This is known as scope.

Global variables

Global variables are scoped so that they can be accessed from anywhere within your app. Global variables are extremely versatile as you can store any type of data within it; that is, you can store tables of data as well as simple strings and numbers.

To define a global variable, we use the Set function and provide it with the variable name and value. In the following example, I will create a global variable called varMyVariable and assign it a string value of My Global Variable:

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime