rtrim, vrtrim

Declaration

cstring function rtrim(cstring S)

varchar function vrtrim(varchar S)

Description

Rtrim removes all leading and trailing spaces from string S.

Example Stored Procedure

CREATE PROCEDURE test_vrtrim (s varchar(254), s1 char(1))

RETURNS (result char(30)) AS

BEGIN

result = vrtrim(s,s1);

END!!

WISQL - calling the example stored procedure

execute procedure test_vrtrim(" bbb ");

RESULT

==============================

bbb