Runtime Variables List (OpenInsight 32-Bit)
At 17 AUG 2009 03:46:13PM Leon Shaffer wrote:
Hello,
I was looking to see if a list of variables can be accessed at runtime. Much like when utilizing "debug", I would like to compile a listing of the current variables and be able to do some processing on this. Is it on one of the RTPxx programs?
At 18 AUG 2009 06:00AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Leon,
The program debug table ('@' record in SYSOBJ) contains a list of all the variables that are used in a particular program and this what is used by the actual debugger. However there's no way to dynamically refer to a variable by it's name at runtime - variables are referenced by position and are resolved from names by the compiler at compile time.
The only place where you can dynmaically access a variable by it's name is during a debugger intercept handler in OI9.x (see the example debugger_dump() stored procedure) so you can dump it's contents if you wish.
World leaders in all things RevSoft
At 18 AUG 2009 12:48PM Leon Shaffer wrote:
Does anyone know how to access the values of variables in memory? For example, if I have a program with a variable called Company_Name, do you know how to access that value in memory?
At 18 AUG 2009 01:51PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Leon,
There is no "late-bound" access to variables from Basic+ unless you are in a debug condition as I mentioned earlier.
What precisely are you trying to accomplish? Perhaps if we understood your requirements we may be able to offer a solution?
World leaders in all things RevSoft