Roy as I mentioned before you are doing your customer a great dis-service by doing this work for them if you don’t know how to do it. Even if you can figure it out with our (or anyone else’s help) the code you produce will be in-efficient and potentially un-necessary.
There are a lot of changes between 9 and 10 which negate the need for some BPMs again no offense to you intended but you should find someone who understands Epicor and BPMs better to do this work. A poorly written BPM will bring down a system and make it crawl to a halt.
The first BPM you were converting where it was assigning PricePerCode and ShortChar06 didn’t even require custom code at all in E10 you could have done with without writing code which is always the preferred method.
Anyways I’m beating a dead horse, regardless to actually answer your question
cur-comp is the current company global variable
orderNum is an incoming parameter in the current method.