- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Heh, not only is the function useless but it uses a VARIANT datatype which hogs memory and is much slower to use than a variable with "explicit type".
Admin
Using variant makes it universally usable.
LOL
Admin
Since it's a variant, what happens when you call this method using a DateTime object? [:^)]
I'm too lazy to load up VB.NET and find out, but I'm sure its amusing.
Admin
Could be VBScript.
Admin
Looks like VBScript to me. Every variable in VBScript is a variant.
BTW, yes this is a useless function.
Admin
Definatly VBScript..... at least i hope..... damn VB.
Admin
Know that this comes way way way way way late,
But I can't stop laughing,,,,, HAAAAAAAAAAAAAH
This is a major WTF
Admin
IsTrue(5) returns 5!
you can use this for a lot of things
Admin
if you change the code to IsTrue=not test in your new version Bang, you have an "April's fools" patch :P
Admin
I am not a VB coder, so correct me if I am wrong, but wont If IsTrue( objInstanceOfDocument.blnDocumentPropertyIsActive ) Then fn_DoStuff() just return void? and just set "IsTrue" to "objInstanceOfDocument.blnDocumentPropertyIsActive"? or is setting an attribute with the same name as function the same as a returning?
Admin
That is how returning in VB is done.
Admin
http://web.archive.org/web/20121005155310if_/http://www.papadimoulis.com/alex/IsTrue.gif