P. 1
Oracle Forms

Oracle Forms

|Views: 379|Likes:
Published by torresalazar

More info:

Published by: torresalazar on Oct 20, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

02/23/2013

pdf

text

original

Description Formats and writes a message to an open file, or outputs the message to the
Interpreter. You can embed up to five "%s" patterns within format (e.g., '%s %s %s').
The "%s" patterns are replaced with successive character arg values (e.g., `Check',
`each', `value.'). "\n" patterns are replaced with newline characters (i.e., carriage
returns).

Syntax

PROCEDURE Text_IO.Putf
(arg VARCHAR2);

PROCEDURE Text_IO.Putf
(file file_type,
arg VARCHAR2);

PROCEDURE Text_IO.Putf
(file file_type,
format VARCHAR2,
[arg1 [,..., arg5] VARCHAR2]);

PROCEDURE Text_IO.Putf
(format VARCHAR2,
[arg1 [,..., arg5] VARCHAR2]);

Parameters

arg

An argument that specifies the value to be
displayed (e.g., character string, variable).

format

Specifies the format of the message to be
displayed.

file

A variable that specifies an open file.

Usage Notes To format messages containing non-character substitutions, use the
TO_CHAR function on the argument (see the example below).

Text_IO.Putf example

/*

** Write a line to the output file, using the

Forms Developer and Reports Developer Built-in Package Reference

136

** TO_CHAR(SYSDATE) call to represent the substituted
** character variable.
*/
Text_IO.Putf(out_file,'Today is %s\n',
TO_CHAR(SYSDATE));

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->