cstrdel,vchardel
Declaration
cstring function cstrdel(cstring S, Integer I, Integer C)
varchar function vchardel(varchar S, Integer I, Integer C)
Description
cstrdelete, vchardelete return string S with a substring of length C removed
from string S starting at I.
Example Stored Procedure
CREATE PROCEDURE test_vchardel(S varchar(30), I Integer,C Integer)
RETURNS (result varchar(30)) AS
BEGIN
result = vchardel(S,I,C);
END!!
WISQL - calling the example stored procedure
execute procedure test_vchardel("123456789",2,3);
RESULT
==============================
126789
execute procedure test_vchardel("123456789",0,3);
RESULT
==============================
456789
execute procedure test_vchardel("123456789",0,15);
RESULT
==============================
Bad paramaters in chrdelete
`