Results 1 to 4 of 4

Thread: Probably EASY Question?!

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    32

    Unhappy

    I am trying to pass a long variable into a ByVal Variant and I am getting a type mismatch error? Any ideas? If I change the type to a Long it works?! Shouldn't the ByVal Variant work also?

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Hmm.. Variant should work too, strange.

    But I'm not to fond of Variant, whereever you can, use a specified type, so using long in this case is no problem if you're sure it's a number, if not, just pass it a string it'll work even with integers after you used the Val function.
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    more info

    Were is the procedure located? Public or private? paste the procedure call and the declaration of the long variable here, were are they located?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    32
    Thanks for the questions kedaman!!!!

    I figured it out!

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