Results 1 to 8 of 8

Thread: [VB6] Run time error '13' Type mismatch

  1. #1
    Dino Sherlockian
    Join Date
    Dec 2011
    Gender
    Location
    America
    Age
    18
    Posts
    844
    Thanks
    315
    Thanked 341 Times in 208 Posts


    Downloads
    34
    Uploads
    2
    Mentioned
    179 Post(s)
    Time Online
    1 d 16 h 55 m
    Avg. Time Online
    1 m
    Rep Power
    8

    [VB6] Run time error '13' Type mismatch

    Probably something stupid, but I'm tired and I want to get this shit done. So...





    Help me, I'm about to fall asleep at the computer and have nightmares about the code. :/

    +REP

    PS: I just decided to remove everything in the loop for the sake of not being copied and I still have to add human-like qualities, plus it looks a bit sad. If you need to see it, PM me please.

  2. #2
    Dino Sherlockian
    Join Date
    Dec 2011
    Gender
    Location
    America
    Age
    18
    Posts
    844
    Thanks
    315
    Thanked 341 Times in 208 Posts


    Downloads
    34
    Uploads
    2
    Mentioned
    179 Post(s)
    Time Online
    1 d 16 h 55 m
    Avg. Time Online
    1 m
    Rep Power
    8
    @Miguel

    now it highlights

    And when I put my cursor over endnp it just says "endnp = Empty"

    And btw, endnp is just the beginning number of neopoints (I know it says end but it was just a name) np is the ending number.

  3. #3
    Dino Sherlockian
    Join Date
    Dec 2011
    Gender
    Location
    America
    Age
    18
    Posts
    844
    Thanks
    315
    Thanked 341 Times in 208 Posts


    Downloads
    34
    Uploads
    2
    Mentioned
    179 Post(s)
    Time Online
    1 d 16 h 55 m
    Avg. Time Online
    1 m
    Rep Power
    8
    np and endnp are both strings... I probably should have mentioned that...

  4. #4
    Saiyan Race





    Infamous Joe's Avatar
    Join Date
    Dec 2011
    Gender
    Location
    Hyperbolic Time Chamber
    Age
    26
    Posts
    9,755
    Thanks
    2,780
    Thanked 16,242 Times in 4,238 Posts


    Downloads
    23
    Uploads
    36
    Mentioned
    2985 Post(s)
    Time Online
    293 d 20 h 21 m
    Avg. Time Online
    3 h 44 m
    Rep Power
    10
    Gamer IDs

    Gamertag: Infam0us Joe Steam ID: infamousjoe
    Are you taking the commas out of the NP?

    endnp = replace(endnp, "," , "")

    before you do any number stuff with it

  5. The Following User Says Thank You to Infamous Joe For This Useful Post:

    Miguel (09-03-2012)

  6. #5
    Banned
    Join Date
    Jun 2012
    Gender
    Location
    90 90
    Age
    31
    Posts
    1,714
    Thanks
    876
    Thanked 2,877 Times in 1,139 Posts


    Downloads
    44
    Uploads
    1
    Mentioned
    562 Post(s)
    Time Online
    118 d 6 h 45 m
    Avg. Time Online
    1 h 30 m
    Rep Power
    0
    Gamer IDs

    Gamertag: DarkByt3 PSN ID: raredaredevil
    Use a long a ints max value is 327627 .

  7. #6


    Join Date
    Dec 2011
    Gender
    Posts
    79
    Thanks
    3
    Thanked 32 Times in 22 Posts


    Downloads
    30
    Uploads
    0
    Mentioned
    24 Post(s)
    Time Online
    18 d 20 h 37 m
    Avg. Time Online
    14 m
    Rep Power
    7
    Quote Originally Posted by raredaredevil View Post
    Use a long a ints max value is 327627 .
    is it not even smaller than that? i always thought it was around 32k.

  8. #7
    Banned
    Join Date
    Jun 2012
    Gender
    Location
    90 90
    Age
    31
    Posts
    1,714
    Thanks
    876
    Thanked 2,877 Times in 1,139 Posts


    Downloads
    44
    Uploads
    1
    Mentioned
    562 Post(s)
    Time Online
    118 d 6 h 45 m
    Avg. Time Online
    1 h 30 m
    Rep Power
    0
    Gamer IDs

    Gamertag: DarkByt3 PSN ID: raredaredevil
    It is i probly added a number lol had issues with it before when making a aber, would not buy anything over 32k

  9. #8
    Little Brother


    Zachafer's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    1,206
    Thanks
    723
    Thanked 1,392 Times in 651 Posts


    Downloads
    81
    Uploads
    17
    Mentioned
    497 Post(s)
    Time Online
    21 d 17 h 32 m
    Avg. Time Online
    16 m
    Rep Power
    14
    Quote Originally Posted by Hexx View Post
    is it not even smaller than that? i always thought it was around 32k.
    An Integer (in vb6) is 2 bytes, ranging from -32768 to 32767. Longs can go up to (2^31-1) which is slightly over 2.147 billion.


    Read the comments I included.

Posting Permissions

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