Announcements
I'm trying to use "Collect" with other functions, but I can't do it. Any solution for this?My code now:Clear(dadosPesquisaCrafter)&Reset(InPesquisa)&UpdateContext({_dadosPcBuscaVisible:false})
HI @N1loCan ,
Instead of ampersands, use semicolons:
Clear(dadosPesquisaCrafter);Reset(InPesquisa);UpdateContext({_dadosPcBuscaVisible:false})
I tried, but it won't accept semicolons...
Hi @N1loCan ,
What property are you trying to set. Based on the question I assumed it was a behavioral property like OnSelect, but perhaps it is a declarative property like Text?
If it is a declarative property, you'll have to insert your code somewhere else in a behavioral property.
In this print, I tried in OnSelect, but I also tried on the reset, but none of them worked...
The single semicolon is usually accepted to separate commands. However, depending on your locale it may be a double semicolon. What do you use to separate arguments in, for instance, an If statement? If they're commas, you need to use the single semicolon, if they're single semicolons, you need to use double semicolons to separate commands.
Based on the above, please confirm you are using the right amount of semicolons and if still not working, please provide the error text.
Hi @BCBuizer , I'm from brazil, and we use '&' in an IF statement, and also we use '&' for multiple commands, like the second print. The first print is the error with the code I'm using now.
error print
multiple commands
According to this article, the operator to use for separating functions in PowerApps whilst using the "pt-BR" locale is a single semicolon:
https://learn.microsoft.com/pt-br/power-platform/power-fx/reference/operators
Can you confirm you are using "pt-BR" as a locale?
yessss, but weird, it does not accept when I use a semicolon. It says "unexpected character"
Can you confirm your locale? You can find it using the Language function:
Here it is, pt-BR
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 397 Super User 2026 Season 2
Mohsin Ali 354
WarrenBelz 232 Most Valuable Professional