umaandsusan
Technical User
We want to receive input from the user during the execution of a script.
How do we do this ?
How do we do this ?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
var
monthyear String
endVar
monthyear = "MM/YY"
;get month/year and add a desciptive window title
monthyear.view( "Enter Month/Year (MM/YY)" )
;now see that the variable is whatever they changed it to
view(monthyear)
formReturn( TRUE )
formReturn( FALSE )
var
fmDialog Form
strValue String
endVar
if not fmDialog.open( "MyDialog" ) then
errorStop( "Can't Open Dialog",
"Use [>>] for more details..." )
else
fmDialog.fldInput = "<A Default Value">
if fmDialog.wait() = TRUE then
strValue = fmDialog.fldInput.Value
doSomething()
else
Message( "Cancelled, as requested..." )
endIf
try
fmDialog.close()
onFail
; do nothing it's already closed
endTry
endIf