Numeric Text Field

What would be a good way to save the last value entered into a Numeric Text Field when you either log off of an app. or close it.

Bind its value bidirectionally to something persistent, like a DB tag or OPC tag.