aolpl Report post Posted 11/22/2004 03:58 AM I copied this script from help to validate if entered numbers begins with 0 and takes long about 11. set vg = CreateObject("VoiceGuide.CommandLink") iLen = Len("$RV_ENTEREDNUMBER") sFirstChar = Left("$RV_ENTEREDNUMBER",1) if iLen<10 or iLen>11 or sFirstChar <> "0" then sResult = "verify_failed" else sResult = "verify_passed" end i vg.Run_ResultReturn $RV_LINEID, sResult set vg = Nothing after entering numbers I got debug error on vg program that in the line 8 char 5 (or sometimes other char) "If expected". error code= here some numbers. Is the script wrong? I am working on windows 2000 server. Do I have to install some additional soft from microsoft to make server understand vbs from vg? Share this post Link to post
SupportTeam Report post Posted 11/22/2004 05:43 AM Just look at line 8 of your script, it says: end i This is invalid syntax - you should have used just "end" on this line. The error message even tells you that the problem ocurrs on the 5th character of the line... Share this post Link to post
aolpl Report post Posted 11/22/2004 12:44 PM please fix it in your help file. Share this post Link to post
MannyTC Report post Posted 11/22/2004 10:52 PM Shouldn't that line say end if ? Share this post Link to post
SupportTeam Report post Posted 11/23/2004 07:48 AM Yes, quite correct, it should actually be "end if". Will fix the help file as well. Share this post Link to post