Re: using functions can be hazerdous to your health
So in your case the modified function is not being loaded into the Global variable space, and the original function remains in the Global variable space. Function are not run from the data dictionary where they are stored but rather from the variable space. That is why functions are sometimes listed as a Variable type.
Why is the modified function not being loaded into the variable space, that is the question. When you restart the application your modified function is run so it is being loaded into the variable space, therefore is not an syntax error in the function. Syntax errors will prevent functions from being loaded into the variable space.
Maybe you have reached some limit to the variable space. If you edit the function after just starting the application does the edit work without reboot. Do you have a really large number of global variables or some really large global variables. Use View-Global variables. Or do you have a large number of functions or some very large functions. The functions also take up variable space.
Your can manually check the syntax of a function by using the following statement in the interactive window.
You can attempt to manually load a function into the variable space with the following command
So in your case the modified function is not being loaded into the Global variable space, and the original function remains in the Global variable space. Function are not run from the data dictionary where they are stored but rather from the variable space. That is why functions are sometimes listed as a Variable type.
Why is the modified function not being loaded into the variable space, that is the question. When you restart the application your modified function is run so it is being loaded into the variable space, therefore is not an syntax error in the function. Syntax errors will prevent functions from being loaded into the variable space.
Maybe you have reached some limit to the variable space. If you edit the function after just starting the application does the edit work without reboot. Do you have a really large number of global variables or some really large global variables. Use View-Global variables. Or do you have a large number of functions or some very large functions. The functions also take up variable space.
Your can manually check the syntax of a function by using the following statement in the interactive window.
Code:
a5_check_syntax(udf_load(UDFname),.T.,.T.)
Code:
udf_define(udf_load(UDFname),global_variables())
Comment