loMeta = iif(type('toMeta.Name') = 'C', toMeta, ; newobject('DBCXMgr', 'DBCXMgr', '', .F., justpath(tcDBC)))It said it couldn't find visual class library "C". The code worked in the EXE thouhg. I changed it to
loMeta = iif(vartype(toMeta) = 'O', toMeta, ; newobject('DBCXMgr', 'DBCXMgr', '', .F., justpath(tcDBC)))and it compiled fine. Just wondering why it would do that.