Guest Buzby Report post Posted 05/10/2005 03:44 PM Hi, I would like to predefine into a variable the number of digits that the user must enter into a Get Numbers script module. I am doing this because I would like to change the number digits required dynamically using a database lookup. Something along the lines of: $RV[DigitsRequired] = "5" I am currently doing this by setting up a counter to start at $RV[DigitsRequired] and having the Get Numbers module get one key at a time, decrementing the counter until it reaches zero. This seems an inefficient way of doing things and sometimes means that the Get Numbers module can miss entered digits if the decrementing code is running when a keypress is made. Incidentally, I do not want to use the hash key, hence why I cannot allow the Get Numbers module to accept any length strings. What's the best way of doing this? Many thanks! Share this post Link to post
SupportTeam Report post Posted 05/12/2005 12:33 AM Easiest way to do this now is to have a set of "Get Numbers" modules with each module expecting a different length input and just have script branch to the module which is going to ask caller for the correct length input. Use an Evaluate Expression module to send caller to the correct Get Numbers module. You can then use the validation VBScript in the Get Numbers module to assign the input to a common RV so that the rest of the script does not need to know which of the Get Numbers modules was used. I do not want to use the hash key, hence why I cannot allow the Get Numbers module to accept any length strings. Number input in a Get Numbers module is also terminated upon timeout - use a Timeout path in the Get Numbers module to change the default timeout of 6 seconds. Share this post Link to post
Guest Buzby Report post Posted 05/12/2005 08:26 AM OK, many thanks, this seems logical, although as I can expect anything up to 20-30 digits, this will look interesting in the Script Editor!!! Can I be impertinent enough to ask that a feature that allows the number of digits required to be defined within a variable be considered for a future release of VoiceGuide?! Share this post Link to post
SupportTeam Report post Posted 05/13/2005 02:17 AM Please try updating the v5.2.4 system install with the attached vgmulti.exe and try specifying RVs for the Min and Max settings. You will need to edit the .vgs file directly using a text editor as the VG Script Editor only allows setting of the Min and Max values to settings between 0 and 100, and rejects any alphanumeric settings (changing them to 0) Note that if you open and save the script using the script editor after making these changes then the Min and Max values will be set to 0 by the VG Script Editor. Let us know if this .exe update works for you. We will later on release an updated script editor which allows you to specify RVs for Min and Max within in. VgMulti_5.2.4001.zip Share this post Link to post