Hello I have a barcode scanner that scans a qr code. Then it extracts some values.
I then have a label that holds the value. I want to make a function that says "If the field its empty assign variable1 if the fields its not empty do First(Match(BarcodeScanner1.Value;"FORSIKRING:(.+)";Contains).SubMatches).Value)
How can i perform this ? I tried with If(IsBlank(Label2.Text);"variable1";First(Match(BarcodeScanner1.Value;"FORSIKRING:(.+)";Contains).SubMatches).Value)
But it gives error
Solved! Go to Solution.
Hmm its close, but only god "variable1" each time now :S
Hi @langsem ,
You could try this code:
If(IsBlank(Trim(First(Match(BarcodeScanner1.Value;"FORSIKRING:(.+)";Contains).SubMatches).Value))),"variable 1",First(Match(BarcodeScanner1.Value;"FORSIKRING:(.+)";Contains).SubMatches).Value))
// Trim function can delete all spaces in a text string, except for a single space between words.
Best Regards,
Wearsky
THank you so much for help !! YOu rock!
User | Count |
---|---|
254 | |
109 | |
92 | |
48 | |
37 |