DELCHR (String)
Use this function to delete one or more characters in a string.
NewString := DELCHR(String [, Where] [, Which])
Where
=
Character in String that matches a character in Which. (default)
<
Leading character in String that matches a character in Which.
>
Trailing character in String that matches a character in Which.
If you do not define any characters, the system uses the equals sign (=) as the default for Where and spaces as the default for Which. It then deletes all spaces.
So to remove leading and trailing spaces = NewString := DELCHR(String ,'<>');
Answers
Like this: NewString := DELCHR(OldString,'=',' '));
Peter
DELCHR (String)
Use this function to delete one or more characters in a string.
NewString := DELCHR(String [, Where] [, Which])
Where
=
Character in String that matches a character in Which. (default)
<
Leading character in String that matches a character in Which.
>
Trailing character in String that matches a character in Which.
If you do not define any characters, the system uses the equals sign (=) as the default for Where and spaces as the default for Which. It then deletes all spaces.
So to remove leading and trailing spaces = NewString := DELCHR(String ,'<>');
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com