CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2000
    Location
    Ireland
    Posts
    503

    Long in a variant

    Hi there,
    does anyone know how i can put a number in a variant with a type as VT_I4 ?


    i.e.

    Dim X as Variant

    X = 2

    ???


    Thanks for any help

    b




    Of course I do it for the ratings!

  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: Long in a variant

    not sure if this what u means

    dim x as long
    dim y as variant

    x = 4
    y = x

    HTH

    cksiow
    http://vblib.virtualave.net - share our codes


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

Featured