frm 499815,global.n_lang_code [message #277027] |
Sun, 28 October 2007 01:43  |
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  |
 |
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!
|
|
|