rtrimc, vrtrimc
Declaration
cstring function rtrimc(cstring S, Char(1) S1)
varchar function vrtrimc(varchar S, Char(1) S1)
Description
Rtrimc removes all trailing characters from string S that match the char
contained in S1.
Example Stored Procedure
CREATE PROCEDURE test_vrtrimc (s varchar(30), s1 char(1))
RETURNS (result char(30)) AS
BEGIN
result = vrtrimc(s,s1);
END!!
WISQL - calling the example stored procedure
execute procedure test_vrtrimc("aaabbbccc","c");
RESULT
==============================
aaabbb
execute procedure test_vrtrimc("aaabbbccc","a");
RESULT
==============================
aaabbbccc