returning true or false [RESOLVED]
Are these the same? which is preferred?
VB Code:
public Function SomethingToDo() as Boolean
try
trying something
catch
Error
Return False
end try
Return True
End Function
VB Code:
public Function SomethingToDo() as Boolean
try
trying something
catch
Error
Return 0
end try
Return 1
End Function
Just curious if returning 0 or 1 is more accepted among coder's. I am pretty sure there is no difference but please correct me if I'm wrong. :)
Oh yeah, am I using the boolean functions in the 'intended' way? to check whether or not a function was successful?