replicate, vreplicate
Declaration
cstring function replicate(Char(1) C, Integer I)
varchar function vreplicate(Char(1) C, Integer I)
Description
Replicate returns a string of length I filled with char C.
Example Stored Procedure
CREATE PROCEDURE test_vreplicate(C char(1), I Integer)
RETURNS (result varchar(60)) AS
BEGIN
result = vreplicate(C,I);
END!!
WISQL - calling the example stored procedure
execute procedure test_vreplicate("a",10);
RESULT
============================================================
aaaaaaaaaa