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

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (30,990)