I get the below warning :
To solve it I put a return statement "Return 1" in the code.
Is it the right way ?
Code:
Warning 1 Function 'exportToCSV' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. C:\Documents and Settings\cxvngh\My Documents\Visual Studio 2008\Projects\OutCre\OutCre\Module1.vb 193 5 OutCre
Is it the right way ?
Comment