cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

How to clear an image variable without a Collection?

Scenario:

  • User clicks "Take Photo" button
  • Camera.stream is stored as a variable "varPic"
  • Textbox1.Default property is set to "varPic" to hold the Base64 (to be sent to SQL table)
  • User clicks "Save" to Patch photo to SQL table (no Collections used)

 

Question:

  • How do I clear varPic?

 

I've tried using a Label instead of a Textbox, but Labels have no Default property nor a Reset property to leverage.

And Textboxes don't have a Text property to leverage!

 

Any ideas?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Champion
Community Champion

Hi,

You can try Blank():

 

Set(varPic, Blank())

Blank() returns a null value to wherever it is placed.

 

Let me know how this works out.

 

Mr. Dang

 

____________

Microsoft Employee
@8bitclassroom

View solution in original post

1 REPLY 1
Highlighted
Community Champion
Community Champion

Hi,

You can try Blank():

 

Set(varPic, Blank())

Blank() returns a null value to wherever it is placed.

 

Let me know how this works out.

 

Mr. Dang

 

____________

Microsoft Employee
@8bitclassroom

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,587)