How I can convert a "macro" on the fly to thinbasic?

' Empty GUI script created on 01-18-2012 20:04:16 by  (ThinAIR)

Uses "console"

MACRO myMoney(d,l) = "EURO" + RSet$(Format$(d, "#,.00"), l - 1)

Function TBMain () As Long
  Local a As String
                  
  a = myMoney(2345.67, 13) 
  MsgBox 0, a 'result should be: "euro 2,345.67"
End Function
bye, largo