In general, a component's name is what you will use to look up its value, while the caption is what is displayed to the user.
The value need not be a string. It is converted to a string using the format function,
and
when the user exits a textbox, the text is passed to acceptor:
newvalue = acceptor(text)
There are several predefined acceptor functions listed below. For example:
DialogText("anInt", "Must be an integer:", "0", acceptInt)
DialogText("boundedInt", "Int between 1 and 5:", "0", acceptIntBetween(1, 5))