Sybernet / Supplied Functions Reference
Release 3.00
Oct 14, 2002
backwards forwards

HTTP.SPACE

This function returns a string with the indicated number of single-byte spaces.

Syntax

FUNCTION SPACE
(
    N                             NUMBER
)
RETURN VARCHAR2;

Parameters

Parameter Description
n
 
The number of spaces.

Returns

A string of spaces.

Example

The following example illustrates how to call space.

declare
    var varchar2(30) := 'HelloWorld';
begin
    http.write(http.space(30-lengthb(var)) || var);
end;


------------------------------
                    HelloWorld



Sybernet is a trademark of SRI International.
Copyright © 1996-2008 SRI International. All Rights Reserved.
Denis D. Workman / http://Sybernet.sri.com/