Does anyone know if it's possible to define a constant using a variable, within a new type?
For example something like:
Something like that... so that as you create a new instance of the type, including a new function, the constant is declared but it's actually set to the content of another variable?
I'm trying to set up a new function at runtime which has some customization each time I create a new instance of it. If I could set up a const for the function or the type and set it to the content of a Global variable, it would really help.
For example something like:
Global myvar:int=12345 Type mytype Field x:int Field y:int Field Const z:myvar 'or Function myfunct() Const myfixedvar=myvar 'do stuff End Function EndType a:mytype=New mytype
Something like that... so that as you create a new instance of the type, including a new function, the constant is declared but it's actually set to the content of another variable?
I'm trying to set up a new function at runtime which has some customization each time I create a new instance of it. If I could set up a const for the function or the type and set it to the content of a Global variable, it would really help.