Can Eval do auto Context ?
Posted
#1
(In Topic #1484)
Regular

In Eval we have to pass a collection always with all variables needed to unknow symbols ??
1) Does Eval get all Sub or Function local vars automatically ? (Declared variables and parameters)
2) Is there a way to do it ?
I tried to run an Eval inside a Sub refering to a local variable and it didn't get the local variable. Throwed a Unknown Symbol error.
Eval is used mostly to facilitate this concatenation with "local" or "scope" variables…
Posted
Guru

Variables local to a Sub / Function (with Dim) are private to that function so must be added to the context collection.
Posted
Guru

eg.
In a class called FMain.class
For Private variables you will also need to use the context Collection
1 guest and 0 members have just viewed this.


