Canvas Apps Expressions

Quotes – Should you use single or double in Power Apps?

Quotes in Power Apps
Quotes in Power Apps

Introduction

There are certain concepts that are very confusing for makers who are just getting started with Power Apps. Out of those, the most common is to figure out when to use single quotes and when to use double.

Tip - Difference in quotes

The difference is as simple as this:

  1. Use double quotes to denote a string e.g. if you want a label to read (Hi, I am a label), set the Text property of the label to
    "Hi, I am a label"
  2. Use single quotes to denote an identifier that has spaces or special characters e.g. if you want to reference a Dataverse table with a name Team members in a gallery, set the Items property of the gallery to
    'Team members'

That being said, there are a few exceptions to this rule e.g. in the SortByColumns function, you list column names in double quotes. But in the Sort function, you list the same column names in single quotes if they have special characters or spaces in their names. To learn more about these two functions, click here.

Stay tuned for the remaining 9 tips!

Recent articles

  1. A-Z: 26 tips! Learn how to improve your Power Apps!
  2. Add Picture vs Camera Control – Who is the winner?
  3. Background images for Power Apps screens – the right way!
  4. Combo box or Dropdown? - Who is the winner?
  5. Delegation in Power Apps – How to identify and test!
  6. Edit vs Display – Which is the better form?
  7. Formulas – How to learn the 170+ Power Apps formulas?
  8. Galleries vs Data Tables – How to pick between the two in Power Apps?
  9. Hyperlinks – How to launch web pages & apps in Power Apps!
  10. Icons – How to increase performance!
  11. Jump start – How to speed up Power Apps dev with components!
  12. Keyboard – How to control the keyboard type on mobile
  13. LastSubmit – How to fetch the last submitted record in Power Apps
  14. Media controls in Power Apps – How to improve user experience!
  15. New screens – How to speed up Power Apps dev using templates!
  16. OnStart – How to optimize app loading experience!
  17. Phone camera – How to switch cameras on Power Apps mobile!

9 thoughts on “Quotes – Should you use single or double in Power Apps?”

  1. Pingback: My Homepage

Leave a Reply