I have created a script 'serialnum' using the prompt for text: ui_get_text. It works great in most instances.
When I try to play my 'serialnum' script in the OnDepart event of a form field object, the script runs twice :(
If I create a new script using xdialog instead of the ui_get_text, it works properly and only runs one time when played from the same OnDepart event of a form field object.
Is this normal?????????????
this is the prompt for text:
this is the xdialog:
When I try to play my 'serialnum' script in the OnDepart event of a form field object, the script runs twice :(
If I create a new script using xdialog instead of the ui_get_text, it works properly and only runs one time when played from the same OnDepart event of a form field object.
Is this normal?????????????
this is the prompt for text:
Code:
'Prompt user for serial # at runtime dim prmpt_title as c dim prmpt_prompt as c dim prmpt_default as c dim prmpt_format as c prmpt_title = "Process Receiving" prmpt_prompt = "Enter your serial #" prmpt_default = "" prmpt_format = "&&&&&&&&&&&&&&&&&&&&&" 'restrict input to 21 character maximum DIM GLOBAL vcgSerialNum AS C vcgSerialNum = ui_get_text(prmpt_title,prmpt_prompt,prmpt_default,prmpt_format)
Code:
'Create an XDialog dialog box to prompt for parameters. DIM SHARED vcgSerialNum as C DIM SHARED varC_result as C heading_string = "Enter the serial number for the next piece" ok_button_label = "&OK" cancel_button_label = "&Cancel" varC_result = ui_dlg_box("Process Receiving",<<%dlg% {region} {text=55,1:heading_string}; {endregion}; {region} serial number:| [.40vcgSerialNum]; {endregion}; {line=1,0}; {region} <*15=ok_button_label!OK> <15=cancel_button_label!CANCEL> {endregion}; %dlg%)
Comment