Just create a form, put a textbox and command buttons on it, in the OK command button, put:
THISFORM.Tag = THISFORM.TextBox1.Value
THISFORM.Release
in the cancel button put:
THISFORM.Tag = ''
THISFORM.Release
in THISFORM.Release put:
=DODEFAULT()
RETURN THISFORM.Tag
and set the form's WindowType to Modal,
Take any parameters in THISFORM.Init and use them to set up any labels, etc on the form, and to call it:
DO FORM myInputForm WITH whatever,parameters,init,wants TO answer
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.