I guess class get cached when you run the code before script.
>Hi Sergey, now the question, why after I add this code HARDCODED in my application before call script, and then run script - NO ERROR?? It looks strange...
>
>>The ExecScript() dumps the code into temporary PRG, compiles and runs it. It's the same as running external PRG.
>>
--sb--