Pass an expression into a function?
Hi.
I just want to ask if it is possible to create a function that accepts an expression into its arguments. Just like what IIF do.
Ex:
Dim strResponse as String = IIF(Msgbox("Select Yes or No", vbYesNo) = vbYes, "Yes", "No")
I forgot the code, but its the thought that counts.
Anyway, is it possible? If it is, how?
Michael
Related Article: Right Click Option
is a solved VB.NET discussion thread by Jollyyy100 that has 3 replies, was last updated 1 year ago and has been tagged with the keywords: click, function, vb, vb.net, vb6.
michaelzip
Light Poster
26 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Stupid me, Msgbox returns a value, and any expression does.
Is there a way I can delete this post?
michaelzip
Light Poster
26 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Self-Answered as of 2 Years Ago