Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27083

Pass/receive string ByRef to a boolean function, possible?

$
0
0
HI.
I cannot find the answer to this anywhere on the internet.

I have a function that accepts a string value possibly "" as Boolean

I know what I wanna do but I just can't seen to figure out how to construct the Return statement of the function to include the Boolean value and the string. Got any ideas? (see below)


Code:


Private Function MyBooFunction(ByRef strSomeString as string) as Boolean
          strSomeString = "Full Now"
         
          If strSomeString <> "" the return (strSomeString) = True
End function




If MyBooFinction(sreSomeString) = True then
        msgbox(strSomeString)
End If

Thanks Guys.

Viewing all articles
Browse latest Browse all 27083


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>