• Enska (unregistered)

    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".

  • (unregistered) in reply to Enska

    Using variant makes it universally usable.

    LOL

  • (cs) in reply to

    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.

  • (unregistered) in reply to Enska
    :
    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".


    Could be VBScript.
  • (unregistered)

    Looks like VBScript to me.  Every variable in VBScript is a variant.   

    BTW, yes this is a useless function. 

  • (cs) in reply to

    Definatly VBScript..... at least i hope..... damn VB.

  • I am not a robot (unregistered)

    Know that this comes way way way way way late,
    But I can't stop laughing,,,,, HAAAAAAAAAAAAAH

    This is a major WTF

  • mausbrian (unregistered)

    IsTrue(5) returns 5!

    you can use this for a lot of things

  • bull (unregistered)

    if you change the code to IsTrue=not test in your new version Bang, you have an "April's fools" patch :P

  • Sean (unregistered)

    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?

  • CHUCK_NORRIS (unregistered) in reply to Sean

    That is how returning in VB is done.

  • Кирилл Фролов (google)

    http://web.archive.org/web/20121005155310if_/http://www.papadimoulis.com/alex/IsTrue.gif

Leave a comment on “IsTrue()”

Log In or post as a guest

Replying to comment #26715:

« Return to Article