VoiceGuide IVR Software Main Page
Jump to content

Text Functions

Recommended Posts

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 ?!:rolleyes:

 

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

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

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

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

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

Try:

 

Replace("$RV[RecModuleTitle]", ".wav", ".mp3")

 

Can you post the vgEngine or vgm trace? (.ZIPed)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×