Home » Developer & Programmer » Forms » how use global variable in other form
how use global variable in other form [message #175467] Fri, 02 June 2006 07:07 Go to next message
mfa786
Messages: 210
Registered: February 2006
Location: karachi
Senior Member
hi master
sir i define global variable abc in form1
sir can i use use this global variable abc in form2
form2 i call from from 1

please give me idea
Re: how use global variable in other form [message #175476 is a reply to message #175467] Fri, 02 June 2006 07:45 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Global variables can be used throughout the whole forms session; therefore, yes - in "form2" you can use a global variable which was declared in "form1".
Re: how use global variable in other form [message #175727 is a reply to message #175476] Mon, 05 June 2006 02:51 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Look at the sample code in the 'clear_block' section of the reference manual. Remember that before testing a global you should do a 'default_value' command to make sure that the global is set to something. An unused global does NOT have a value of 'null'.

David
Previous Topic: Required Forms 9i Documentation.
Next Topic: canvas issue....
Goto Forum:
  


Current Time: Fri Sep 20 08:19:03 CDT 2024