What function is this?

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
3 posts Page 1 of 1
Contributors
User avatar
Cheatmasterbw
Coding God
Coding God
Posts: 1506
Joined: Fri Jan 01, 2010 2:30 pm

What function is this?
Cheatmasterbw
I cant remember the name of this function. it is like this:

FunctionName(boolean, object, object)
if the boolean is true, the function returns the first object. if it is false, it returns the second.

thanks if you can help :D
http://www.megaapps.tk/
User avatar
Martin
Supreme VIP
Supreme VIP
Posts: 369
Joined: Sat Aug 01, 2009 12:26 pm

Re: What function is this?
Martin
maybe its this?
Code: Select all
if boolean = true then 
return object1
else
return object2
end if
Image
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: What function is this?
mandai
In VB.Net you can use the IIf function, I think this is what you are looking for.
3 posts Page 1 of 1
Return to “Coding Help & Support”