DDE.GETFORMATNUM
built-in functionThis function translates or registers a specified data format name and returns a format number.
DDE.GETFORMATNUM (formatstr)
Parameter |
Type |
Description |
|
|
Data format name string. |
PLS_INTEGER
This function converts a data format from a string to a number. This number can be used in Poke and Request transactions to represent the DataFormat parameter
If the specified name is not registered, this function registers it and returns a unique format number. This is the only way to use a format in a Poke or Request transaction that is not one of the predefined formats.
This function returns the numeric representation of the data format string
that is a PLS_INTEGER
.
See Microsoft Windows predefined data formats for the predefined data format constants.
DECLARE
FormatNum PLS_INTEGER;
MyFormatNum PLS_INTEGER;
BEGIN
/* Get predefined format number for "CF_TEXT";
(should return CF_TEXT=1). */
FormatNum := DDE.GETFORMATNUM('CF_TEXT');
/* Register a user-defined data format called "MY_FORMAT".
*/
MyFormatNum := DDE.GETFORMATNUM('MY_FORMAT');
END;
About the DDE
built-in package
Copyright © 1984, 2005, Oracle. All rights reserved.