Global variables and some "unknown" code [message #312651] |
Wed, 09 April 2008 09:27  |
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
|
|
|
|
Re: WHO CAN ANSWER OF THIS QUETION [message #312781 is a reply to message #312651] |
Wed, 09 April 2008 14:02   |
 |
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  |
 |
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, asor by using the DEFAULT_VALUE built-in (if its current value is NULL), asDEFAULT_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
|
|
|