There are times when you need to change the company your are focusing on when processing code. The methodology for this is to use the command ChangeCompany int he following format:


There is however a problem, where Select statements and other commands will not use the correct company within this statement. To get around this problem you need to ensure each table you plan to use has been nulled before use.

For example if you wanted to get information from the customer table, you need to ensure the CustTable = null; is run within the …code… area before the use of the table.


One thought on “ChangeCompany

  1. It is a good practice to always think of each method to remain in scope for one company. So when using changecompany I prefer to call a different method within that scope, in order to make sure all table buffers within that called method is consistent within that company.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s