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
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (2,837)