Post it as thread so that people may see it. You can use get.compnr () function to get the current company number.
comp = get.compnr()
Now, comp will have the current company number.
Unless you try to do something beyond what you have already mastered, you will never grow!