Results 1 to 2 of 2

Thread: COleVariant

  1. #1

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471

    COleVariant

    How do you determine which type of data is in the COleVariant
    object?

    basically, i'm retrieving fields from a database from the
    GetFieldValue function into a COleVariant object. How do I
    determine what type of data the var object is referencing
    or do I have to know what data types each field contains
    beforehand?

    thank you in advance
    Bababooey
    Tatatoothy
    Mamamonkey

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    COleVariant encapsules the VARIANT data structure. This structure has a member named vt. You can query this member to determine the type of the VARIANT. Search for VARIANT in MSDN.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width