Home » Developer & Programmer » Forms » how declare a form level variable in forms 9i
how declare a form level variable in forms 9i [message #87239] Wed, 15 December 2004 07:40 Go to next message
Mohan G
Messages: 36
Registered: August 2004
Member
hello

how can i declare a form level variable i.e the variable declared in a form should be accessable only in that form but not from the other forms

thank in adv.

Mohan G
Re: how declare a form level variable in forms 9i [message #87248 is a reply to message #87239] Wed, 15 December 2004 10:48 Go to previous messageGo to next message
Just John
Messages: 69
Registered: November 2004
Member
create a parameters.

ref as:

:parameters.parameter_name

OR

Just store it in block item!

NOTE:

You could use a GLOBAL but it would be over-kill.
Re: how declare a form level variable in forms 9i [message #87289 is a reply to message #87248] Thu, 16 December 2004 09:25 Go to previous messageGo to next message
Mohan G
Messages: 36
Registered: August 2004
Member
thank you john
what is this block item ? how can i store the variable in a block item ?
you mean, its taking a text item in the block of a canvas or what ?
Re: how declare a form level variable in forms 9i [message #87292 is a reply to message #87289] Thu, 16 December 2004 11:18 Go to previous messageGo to next message
Just John
Messages: 69
Registered: November 2004
Member
By a Block Item I was refering to any non-database data item on an existing data block (or database item on a new block - or any combination there of!).

you can use block (data) items to store anything you wish - not just data from the database. (NB: be warned its not a so good when you have a multi-record block!)

This was just another option to using a PARAMETER or GLOBAL VARIABLE.
Re: how declare a form level variable in forms 9i [message #87303 is a reply to message #87292] Thu, 16 December 2004 21:28 Go to previous message
Mohan G
Messages: 36
Registered: August 2004
Member
ok
thak you john
Previous Topic: how to call a button trigger in forms 9i
Next Topic: Problem : Parameter passing
Goto Forum:
  


Current Time: Sun Sep 08 03:45:38 CDT 2024