Home » Developer & Programmer » Forms » frm 499815,global.n_lang_code (oracle forms6i)
frm 499815,global.n_lang_code [message #277027] Sun, 28 October 2007 01:43 Go to next message
amena
Messages: 14
Registered: August 2005
Location: pak
Junior Member
when i open a new form (runtime) this show the error 'frm 499815,global.n_lang_code does not exist'
while i am using application develped in form6i and plateform is win2000,
Thanks in advance

Re: frm 499815,global.n_lang_code [message #277044 is a reply to message #277027] Sun, 28 October 2007 03:37 Go to previous message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
There's a form trigger (WHEN-NEW-FORM-INSTANCE, PRE-FORM or similar) which fires and needs to use value stored in the 'global.n_lang_code' global variable. But, as you've never initialized this variable, it doesn't exist and form throws an error.

Initialize a global variable either using a simple
:global.n_lang_code := some_value;
or use the DEFAULT_VALUE built-in (read more about it in Forms Online Help System):
DEFAULT_VALUE('some_value', 'global.n_lang_code');
-- note that there's no colon (:) here!
Previous Topic: WHEN_CHECKBOX_CHECKED
Next Topic: Problem in List item
Goto Forum:
  


Current Time: Sun Feb 09 07:42:28 CST 2025