cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
seadude
Memorable Member
Memorable Member

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
mr-dang
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
mr-dang
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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,021)