Hi
When I create a method in vb.net, I can specify that the parameters passed are byVal or byRef. I tend to use the byRef when I want to return an error code if an exception is caught.
My question therefore is:
1. Is the use of byRef for passing error codes the correct approach? or is there a more effective approach especially if my functionis designed to return say a dataset?
Mike55.
When I create a method in vb.net, I can specify that the parameters passed are byVal or byRef. I tend to use the byRef when I want to return an error code if an exception is caught.
My question therefore is:
1. Is the use of byRef for passing error codes the correct approach? or is there a more effective approach especially if my functionis designed to return say a dataset?
Mike55.