Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GLOBALS

Status
Not open for further replies.

maxxx

Programmer
Nov 15, 2000
12
RU
I'm interesting can i or not
save information from field to global variable
in Developer 6.0 and use this global variable in other blocks
(note: this field is key field and not visible)?

I know that i can do it with visible fields.


 
If you are talking forms, then yes, you store the variable's
value in a global variable value and you can use it anywhere,
even in a differerent form, until it is erased. Just doublecheck
whether you have to declare the global first in pre-form or in
when-new-form-instance; I don't have any reference material
here. Jim

oracle, vb
 
P.S. "Declare" for a global is not exactly the correct terminology.
What I mean is that you create a global variable and assign it an
initial value in the same statment. Jim

oracle, vb
 
A global variable is automatically created when a variable is prefixed with the keyword "global".
So, when i say
:global.g_empno :=:blk.empno;

the global variable called "g_empno" is created and a value from the block "blk", column "empno" is assigned to it.

Kavy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top