BrianDocherty Report post Posted 02/15/2006 05:46 PM I have a stand alone VB application which generates a text file which updates frequently. I have the data in the text file formatted as single line with the format: [Download_Date]{string1}[Plat_No]{string2} ......[Car_No]{string4} which I think is the required delimiting format for VG. I want to read these RVs and their associated data into VG and use the data as DTMF digits in a PLAY module. I have no experience of VB scripting and I have tried using Example 2 in the VB scripting help file as a template for what I need to do. I am not having any luck. I have even copied the example exactly (and enter a string of numbers in the file as the $RV[ReadInPrice] to dial. BTW does the string in CurrentPrices.txt in the example need to be formatted in any way I am using the trial version so it should Command Link capable Hope you can help Share this post Link to post
SupportTeam Report post Posted 02/15/2006 10:36 PM Best to use VBScript module to read in the file and then use the COM command RvSet_RvList to set the RV's for that line, or just return them as part of the Run_ResultReturn call. In the Example 2, just change this line: vg.RvSet $RV_LINEID, "ReadInPrice", sEntireFile to be: vg.RvSet_RvList $RV_LINEID, sEntireFile Share this post Link to post
BrianDocherty Report post Posted 02/15/2006 11:35 PM Thanks for the info I am having a problem getting Example 2 to do anything. A couple of questions relating to this: 1 Which of the three Continue, without waiting for VBScript to complete. Wait until VBScript completes. Wait until VBScript and sound file completes. settings should be used with Example 2. 2 Do the contents of the text file C:\CurrentPrices.txt need to be formatted (if so Example please ?) Thanks Share this post Link to post
SupportTeam Report post Posted 02/15/2006 11:47 PM "Wait until VBScript completes" needs to be selected. The read in file must be in format like the one you mentioned already: [Download_Date]{string1}[Plat_No]{string2} ......[Car_No]{string4} If you still have problems post your script, the text data file, and the trace capturing the call When posting traces/scripts please .ZIP them up and post them as attachments. Share this post Link to post