So myHUD is a widget you have created containing a variable called moneyvar?
What data type is the HUD ref variable?