0

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

1
Contributor
1
Reply
3
Views
6 Years
Discussion Span
Last Post by michaelzip
0

Stupid me, Msgbox returns a value, and any expression does.
Is there a way I can delete this post?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.