MumtazAli Report post Posted 03/18/2008 10:40 AM We are using Licensed VG 7. Here Below script i am trying to execute but giving error. Plz look at the code and Log file below. set vg = CreateObject("vgServices.CommandLink") For Ev = 1 To Len("$RV_ENTEREDNUMBER") - 2 Step 2 ESChr = Mid("$RV_ENTEREDNUMBER"), Ev + 1, 1) K = K + ESChr Next Ev For Od = 1 To Len("$RV_ENTEREDNUMBER") Step 2 OSChr = Mid("$RV_ENTEREDNUMBER", Od, 1) * 2 If Len(OSChr) = 2 Then OSChr = Val(Left(OSChr, 1)) + Val(Right(OSChr, 1)) End If J = J + OSChr Next Od If (10 - Right((J + K), 1)) = Val(Right("$RV_ENTEREDNUMBER", 1)) Or (10 - Right((J + K), 1)) = 10 Then sResult = "Success" Else sResult = "Fail" End If vg.Run_ResultReturn $RV_LINEID, sResult set vg = Nothing Emarat.zip Share this post Link to post
SupportTeam Report post Posted 03/18/2008 10:59 AM If this is ran as the Get Numbers' "Verify Entered Number" script then the returned values should be: "verify_passed" and "verify_failed" instead of "Success" and "Fail". Please see: http://www.voiceguide.com/vghelp/source/ht...odgetnumber.htm Please also use Admin_TraceLogAdd (http://www.voiceguide.com/vghelp/source/html/com_admin_tracelogadd.htm) throughout the script to see how the script progresses and at which stage the fault occurs. Admin_TraceLogAdd will place entries in the vgEngine log file. Share this post Link to post