scotthyde1 Report post Posted 09/09/2010 10:18 AM Hi, trying to use text functions like mid and Len wth RV_record but no matter what syntax I try I just get concatenated text left($RV-record), 10) - is always giving me something like this.... left(C:\Program Files\VoiceGuide\data\VmSave\0909201223_1_0298109558.wav,10) no matter if I use ', "[ or whatever and wherever ?! trying to do in body of email message but then als tried to us expression module as per past forum post please help - ive been at it for a couple of hours!! Thank you Share this post Link to post
SupportTeam Report post Posted 09/09/2010 12:57 PM Please post the script that you are using and a trace capturing the call. (Please .ZIP up files before posting) We can then see what happened and see what script is trying to do, and we can better advise on what to do. Share this post Link to post
scotthyde1 Report post Posted 09/09/2010 10:09 PM Hi, Im realy just in concept mode at moment and relates to another question regarding minimising file size etc... I have file path from $RV_record....and I then pass this to an .exe which converts the .wav to .mp3. so I am left with original file name - except extension is .mp3 not .wav.... this is all ok But now I want to EMAIL the NEW file ie c:\path\file.mp3....but im having trouble getting this new name with mp3 extension into a variable so I can use in the send email module. -- we were going to FTP the new file but our sharepoint site recieves and proceeses email. thanks Share this post Link to post
SupportTeam Report post Posted 09/09/2010 11:33 PM You could use something like this in the Evaluate Expression module: Replace($RV[RecModuleTitle], ".wav", ".mp3") The result with .wav replaced by .mp3 will be saved in new $RV. Share this post Link to post
scotthyde1 Report post Posted 09/10/2010 04:06 AM Thanks very much will try this and let you know the result Cheers Share this post Link to post
scotthyde1 Report post Posted 09/10/2010 04:33 AM look to be same output ie result in the email body replace(C:\Program Files\VoiceGuide\data\VmSave\0910142054_1_0298795649.wav,.wav,.mp3) So the $RV[Record] is recgnised but function isnt again NOTE ; the way I am testing is by putting the NEW $RV into the body of the email (as ooposed to the atachment box which is what Ill do when actually convert the file) But this should make a differcen should it as NEW $RV should be output of replace? Share this post Link to post
SupportTeam Report post Posted 09/10/2010 06:28 AM Try: Replace("$RV[RecModuleTitle]", ".wav", ".mp3") Can you post the vgEngine or vgm trace? (.ZIPed) Share this post Link to post
scotthyde1 Report post Posted 09/10/2010 08:52 AM That has worked! cheers always cobnfused when I should use "'{] or not! Share this post Link to post