P. 1
OR-Oracle_Forms_6i-8_0-WB

OR-Oracle_Forms_6i-8_0-WB

2.0

|Views: 6,877|Likes:

More info:

Published by: Mohammed Nayeemuddin Qureshi on Mar 23, 2011
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

01/27/2014

pdf

text

original

A global variable is an Oracle Forms variable whose value is accessible to triggers and
subprograms in any module that is active during the current session.

A global variable stores a character string of up to 255 characters in length.

Because global variables are accessible throughout an entire session, they are frequently
used to keep track of variables used in a multiple-form application.

Declaration

Global variables are not formally declared the way PL/SQL local variables are. Rather, you
initialize a global variable the first time you assign a value to it:

:GLOBAL.pidm := TO_CHAR(:swriden_pidm);

Referencing

To reference a global variable, prefix the variable name with the word GLOBAL and a colon.

Referencing a global variable that has not been initialized through assignment causes a
runtime error.

Destruction

To destroy a global variable and release its memory, use the ERASE built-in procedure:

erase('GLOBAL.pidm');

© SunGard 2004-2008

Oracle Forms 6i

Page 201

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)//-->