Home » Developer & Programmer » Forms » Global variables and some "unknown" code
Global variables and some "unknown" code [message #312651] Wed, 09 April 2008 09:27 Go to next message
owais_baba
Messages: 289
Registered: March 2008
Location: MUSCAT
Senior Member
CAN UEXPLAIN THESE THINGS HOW ITS WORKS I MENA
ABOUT WIN_ALERTS,:GLOBAL.DEBUG,LOGIT
I NEED THE SOLUTION OF THIS IF ANYBODY KNOW PLS SEND ME THE DETAIL
THANSK
------------------------------------------------
IF phone_number IS NULL
THEN x := win_alert('OK','No phone number to dial.');
raise form_trigger_failure;
END IF;

logit(:global.debug,'======== Begin DIAL_PHONE (' || phone_number || ') ==============');


[MERGED by LF]

[Updated on: Wed, 09 April 2008 14:08] by Moderator

Report message to a moderator

GLOBEL.DEBUG,GLOBAL_ADDRESS_ID ITS URTGENTS!!! [message #312683 is a reply to message #312651] Wed, 09 April 2008 10:44 Go to previous messageGo to next message
mughal_raja
Messages: 10
Registered: April 2008
Location: italy
Junior Member

ANY BODY EXPLAIN ME HOW TO DEFINE GLOBE.DEBUG OR GLOBEL_address_id

IF phone_number IS NULL THEN
x := win_alert('OK','No phone number to dial.');
raise form_trigger_failure;
END IF;

logon(:global.debug,'======== Begin DIAL_PHONE (' || phone_number || ') ==============');

and what's wrong with this code


thanks

raja
Re: WHO CAN ANSWER OF THIS QUETION [message #312781 is a reply to message #312651] Wed, 09 April 2008 14:02 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
@owais_baba:

As far as I can tell, "logit" and "win_alert" are user-defined procedures (or functions).
"win_alert" probably displays the alert (with only one button: <OK>).
"logit"? Sounds like "logging an error", but ... who can tell?
":global.debug" is a global variable.

I believe you should work on your posting skills; we have a Test forum where you may test your skills, both in message formatting and spelling.

We've also written the OraFAQ Forum Guide. Please, read it before posting your next message, because this one is horrible!

[Updated on: Wed, 09 April 2008 14:14]

Report message to a moderator

Re: WHO CAN ANSWER OF THIS QUETION [message #312786 is a reply to message #312781] Wed, 09 April 2008 14:13 Go to previous message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
@mughal_raja:

As of defining global variables, there's Online Help System which will tell you all (OK, not all, but certainly much more than you know at the moment) about them.

In a few words: they are initialized either by assigning a value directly to it, as
:global.debug := 'Y';
or by using the DEFAULT_VALUE built-in (if its current value is NULL), as
DEFAULT_VALUE('Y', 'global.debug');


Now, please, read the last part of my previous message. As both of you work together, spend some time in coordinating your messages (so that I wouldn't have to merge them again) and, especially, improving posting skills.

[Updated on: Wed, 09 April 2008 14:14]

Report message to a moderator

Previous Topic: Execute_query problem
Next Topic: combobox validation
Goto Forum:
  


Current Time: Tue Mar 11 12:37:40 CDT 2025