Question
· Oct 28

Load and compile error

Hello,

I am using the following: 

s status = $SYSTEM.OBJ.Load("myClassName," "c")

and while trying to compile it i get an error that a property or method does not exist, more specifically:

 

Method or Property 'basicToolbar' does not exist in this class.

it's important to say - basicToolbar DOES EXIST! If i manually compile this class through the studio, it will work and is runnable. 
only when using the Load command i get this error. 

what could possibly be wrong?
i also tried combination of different flags but fail to understand how is this possible.
 

Product version: Caché 2018.1
Discussion (3)1
Log in or sign up to continue

I tried it, did not work, It seems that the code used to manually take and compile the parent class, And then compile the class we are on. This does not work as the 
Right now even if I manually take the parent class and compile it still won't work.
scenario 1:
when manually taking the parent class and trying to compile it, it would then compile its child and fail there (presumably because the child compiled in parallel to the parent causing the Method or Property undefined)
scenario 2: 
when trying to compile the class with the "ckr" flag, it would tell us the class was compiled successfully but in reality the class won't be compiled as we go inside it in studio we see it required compilation still.