Order Of Text Input Boxes Effects Vbscript 追蹤

0
Avatar
Legacy Poster

The order of the text input boxes on the Prompt Design is effecting the the variables my VBscript uses.  My script is in an object that is linked to the first(topmost) text input box on the Prompt Design.  Several of the variables used by my script are pulled from the text input boxes just below the first box.  The objects linked to these input boxes(bar codes and text) all display correctly during print preview.  However there are several text objects that undergo some math before being displayed.  If the text input box is placed first, the variables are empty and I get all zeroes.  If I move the text input box down to the bottom, the variables are used as intended.  Why is the position of the input box a factor in when the variables are filled?

2 意見

0
Avatar
Shotaro Ito
評論操作 永久連結

Do you place vb script in Transform (OnProcessData Event?) in that case you cannot control the process order of text boxes at will.

Try using OnPostPrompt Event control script. Topic below might helps.

http://forums.seagullscientific.com/index.php?/topic/715-vb-script-on-validation-at-prompt-dialog/

0
Avatar
Legacy Poster
評論操作 永久連結

Do you place vb script in Transform (OnProcessData Event?) in that case you cannot control the process order of text boxes at will.

Try using OnPostPrompt Event control script. Topic below might helps.

http://forums.seagullscientific.com/index.php?/topic/715-vb-script-on-validation-at-prompt-dialog/

Thanks, I tried this a little while ago and it works.

登入寫評論。