1,105,546 Community Members

Pass an expression into a function?

Member Avatar
michaelzip
Light Poster
26 posts since Jan 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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

Member Avatar
michaelzip
Light Poster
26 posts since Jan 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Question Self-Answered as of 2 Years Ago
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: