Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: guest on May 12, 2009, 08:50:24 AM

Title: trim a string variable
Post by: guest on May 12, 2009, 08:50:24 AM
In strategy ,i have a string variable from which i want to remove all blank spaces. Is there a IRD function whch does that ? Something like trim[] function.
Title: Re: trim a string variable
Post by: guest on May 12, 2009, 08:56:42 AM
The space can be at any point of string variable -start /end/in between
Title: Re: trim a string variable
Post by: bogdan on May 12, 2009, 09:01:39 AM
Try something like this: StrReplace[test_string,' ','']

As you can see it works for me:
    _I_I_015201afa1e16e60 [09:04] ASSIGN: test_string(LOCAL) <- STRING: hello there send by mielu
    _I_I_015201afa1e16e60 [09:04] ASSIGN: test_string(LOCAL) <- STRING: hellotheresendbymielu
11:59:45.300 Int 22000 test_string after is: hellotheresendbymielu

Regards