alltrim,valltrim

Declaration

cstring function alltrim(cstring S)

varchar function valltrim(varchar S)

Description

Alltrim removes all leading and trailing blanks from string S.

Example Stored Procedure

CREATE PROCEDURE test_valltrim (s varchar(30))

RETURNS (result char(30)) AS

BEGIN

result = valltrim(s);

END!!

WISQL - calling the example stored procedure

execute procedure test_valltrim(" bbb ");

RESULT

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

bbb