cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Davidnho87
Frequent Visitor

Qr code scanning

Hello everyone

I need help building an app, I've tried everything but it doesn't work.
I have a Qr Code that scanning it gives me this as a result:
[)> 06 20L<|>5402 1L<|>5961 1P<|>380-11-522

Now pressing the SCAN button on the app, I would like to automatically have the string above, split like this in each label:
Label1 : 5402
Label2 : 5961
Label3 : 380-11-522
Could you help me?

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Davidnho87 ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @Davidnho87 ,

Firstly to split them (drop-down example below)

WarrenBelz_0-1625607636999.png

The code I used (txSplit is the text box above),

With(
   {
      wItems: 
      Split(
         txSplit.Text,
         "<|>"
      )
   },
   LastN(
      wItems,
      3
   )
)

Now for the labels -

WarrenBelz_1-1625608627458.png

if you put this on a button

With(
   {
      wItems: 
      Split(
         txSplit.Text,
         "<|>"
      )
   },
   ClearCollect(
      colItems,
      LastN(
         wItems,
         3
      )
   )
)

First Label is 

First(colItems).Result

Second

Last(
   FirstN(
      colItems,
      2
   )
).Result

and the Third

Last(colItems).Result

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

WarrenBelz
Super User
Super User

Hi @Davidnho87 ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Davidnho87
Frequent Visitor

Hello @WarrenBelz 

Thanks it works!

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,516)