I have a function whose return type is uint, if there is no value returned it returns null, using the same concept as you mentioned in the previous post.
Now, how can the calling function check if the value returnd is null or empty?
You're using null as a special value to indicate no-value, so you can't tell the difference. Another way of thinking about it is that no-value and empty are equivalent.
Chip H.
____________________________________________________________________ If you want to get the best response to a question, please read FAQ222-2244 first
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.