len, vlen

Declaration

Integer function len(cstring S)

Integer function vlen(varchar S)

Description

len, vlen return the length of string S.

Example Stored Procedure

CREATE PROCEDURE test_vlen(s varchar(30))

RETURNS (result integer) AS

BEGIN

result = vlen(s);

END!!

WISQL - calling the example stored procedure

execute procedure test_vlen("123456");

RESULT

===========

6

execute procedure test_vlen("123456789");

RESULT

===========

9