Initializing APP.m_company

Could someone provide an example or explain how to initialize APP.m_company and the other components of that class?

I am trying to run the sample app with the correct version of the SAGE software but it does not see an open company (APP.m_company is blank).

Thanks for your help.

Jean