Set(varBarcode,First(BarcodeReader1.Barcodes).Value)
//or
UpdateContext({varBarcode:First(BarcodeReader1.Barcodes).Value})
Set(varBarcode,Blank())
If this solved your problem, please mark it as Solved to help others find the solution faster.
If you found it helpful, consider giving it a Like to support each other in this community!
Thanks, and happy building!