Well, I tried using the "return" keyword. It surely stopped the process of other commands underneath it. But somehow, that's not what I want.
If we have the DocAction object, we can just set it to "false", then other commands underneath it are still able to process until the end. Then, because of setting the DocAction object to "false",
The commandBar onClick will stop processing.
The intention behind this is that i write another method to hook up with the existed toolbar. Once the user click that commandBar button, they are supposed to execute my code from my method first. Once they get out from my method, the other code (dont know where it is, and don't wanna care about it as well since it's abstracted from being known) which is written for that commandBar button will be executed. If I am able to set the DocAction object to "false", I would be able to stop the process of that button right after it finishes running code in my method (so that it will not execute the other code which is written somewhere else).
So, any suggestion??? :(
Thanks