zikomandal Report post Posted 01/30/2008 07:08 AM Hi. I am using version 6 of VoiceGuide. While designing a flochart, I am facing some problems with Evaluate Expression module. I am trying to generate a unique id from an expression and push that into database in the next module. But the problem is the expression isn't evaluating and no value is in the result variable (user specifed). The expression is: [Cstr($RV_NN) + "_" + Cstr($RV_HH) + "_" + Cstr($RV_DD) + "_" + Cstr($RV_MM) + "_" + Cstr($RV_YY) + "_" + Cstr($RV_LINEID)] or [Cstr($RV_NN) & "_" & Cstr($RV_HH) & "_" & Cstr($RV_DD) & "_" & Cstr($RV_MM) & "_" & Cstr($RV_YY) & "_" & Cstr($RV_LINEID)] I am attaching screenshots of the Evaluate Expression module, VBScript module, and the result from call log and also the flowchart (fraction). What am I doing wrong here ? Is there any result variable to capture the whole date at once ? Thank you for your support. Share this post Link to post
SupportTeam Report post Posted 01/30/2008 08:34 AM I think the problem may be the brackets at the begining and end of the expression. You need to include these in the string. Alos no need to use all those CStr() functions. Try: "[$RV_NN_$RV_HH_$RV_DD_$RV_MM_$RV_YY_$RV_LINEID]" or Cstr("[$RV_NN_$RV_HH_$RV_DD_$RV_MM_$RV_YY_$RV_LINEID]") Share this post Link to post
zikomandal Report post Posted 01/30/2008 08:48 AM I think the problem may be the brackets at the begining and end of the expression. You need to include these in the string. Alos no need to use all those CStr() functions. Try: "[$RV_NN_$RV_HH_$RV_DD_$RV_MM_$RV_YY_$RV_LINEID]" or Cstr("[$RV_NN_$RV_HH_$RV_DD_$RV_MM_$RV_YY_$RV_LINEID]") Still now working. Now the leading and trailing '[' are included in the module trace log and nothing is inside the result variable that I defined. Share this post Link to post
SupportTeam Report post Posted 01/30/2008 09:20 AM If you do not want to have the square brackets in the expression then just remove them, so the expression becomes: "$RV_NN_$RV_HH_$RV_DD_$RV_MM_$RV_YY_$RV_LINEID" or Cstr("$RV_NN_$RV_HH_$RV_DD_$RV_MM_$RV_YY_$RV_LINEID") It works fine for us on our test system. If you still have problems please post the traces from your system capturing the call so that we may see what is happening on your system. Could you please post a copy of VoiceGuide's Trace Logs which captures the problem, this will allow us to see what happened. Enable logging by setting the log levels to 10 in VG.INI as per below: [Log] VoiceGuide=10 Then restart VG and make a test call which demonstrates the problem. Trace files will be created in VG's \log\ subdirectory. Please post the traces and the VoiceGuide script used. When posting traces/scripts please .ZIP them up and post them as attachments. Share this post Link to post
zikomandal Report post Posted 01/30/2008 09:44 AM Ok, Still not working. I am attaching the script and log files created from VoiceGuide. And I am also attaching the Error Message from Windows when the function is executing. Thanks for the support. Post.zip Share this post Link to post
zikomandal Report post Posted 01/30/2008 10:00 AM I think I got it now. Thanks for all the support. The main problem was in vbscript code which handled the string and integer and panicked when it encountered '_'. Wrapping the thing inside "" solves that. But is there any way to assign any result variable/global variable from vbscript code. That would have helped a lot. Thank you. Share this post Link to post
SupportTeam Report post Posted 01/30/2008 10:19 AM But is there any way to assign any result variable/global variable from vbscript code. Yes, there is. Please see: http://www.voiceguide.com/vghelp/source/html/com_rvset.htm and http://www.voiceguide.com/vghelp/source/ht...vset_rvlist.htm Share this post Link to post