How do I extract patch names from Halion 7 to display as text labels?

A script in each instance– one to send the message via OSC, and the other to interpret the message and set the label of the widget.

For instance A(sending):

Var
   knb : Widget
   txt : string
On WidgetValueChanged(newValue : double) from knb
   txt = GetWidgetLabel(knb)
   OSC_SendString(“/lbl”, txt)
End

For Instance B(receiving):

Var
   txt : string
   lbl : widget
On OSCMessageReceived(m : OSCMessage) Matching “/lbl”
   txt = OSC_GetArgAsString(m,0)
   SetWidgetLabel(lbl,txt)
End