OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Ximon Eighteen (ximon_eighteen_at_3B2.COM)
Date: Fri Jan 31 2003 - 03:38:20 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    > Hi
    > In Don Box's Essential Com, he says variant in VB is a
    > discriminated union. That mean u have to say the type of the values stored
    > in the variant at parameter definition type. That means variants can store
    > only one type at a time. Is it true

    Yes. A variant is just a way of packaging many types into a single form that
    is understood by the standard marshaller, and allows VB to pass a type to a
    function whose actual form is not known until runtime. Why should it hold
    more than a single type at once?

    Ximon Eighteen

    ----------------------------------------------------------------
    Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    contains important info. Save time, search the archives at
    http://discuss.microsoft.com/archives/index.html .
    To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM