Results 1 to 10 of 10

Thread: numbers appearing wrong.. [Resolved]

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2005
    Posts
    31

    Resolved numbers appearing wrong.. [Resolved]

    attached below is the form of a program im making. one thing that i cant seem to fix is that i put different numbers in each side. and then i hit the button and then both numbers appear the same in the attack and defense text fields. i cant seem to find what is wrong. if it isnt a problem i would appreciate if someone took a look and see if they could find anything wrong.
    Attached Files Attached Files
    Last edited by Bored Teenager; Jun 11th, 2005 at 06:31 PM.
    Thanks for the help
    - Bored Teenager -

  2. #2
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: numbers appearing wrong..

    zip up the file bro I can't read it unless you use winzip
    www.winzip.com

  3. #3
    Addicted Member
    Join Date
    May 2005
    Posts
    168

    Re: numbers appearing wrong..

    HI,

    It looks like simple typos:

    'Should be d1,d2,d3,tech2 for your defense.
    Defender_Troops = Val(a1.Text)
    Defender_Turrets = Val(a2.Text)
    Defender_Tanks = Val(a3.Text)
    Defender_WT = Val(tech1.Text)

    Have a good one!
    BK

  4. #4
    Fanatic Member Blade's Avatar
    Join Date
    Jan 1999
    Location
    Stoke-on-Trent, UK
    Posts
    527

    Re: numbers appearing wrong..

    Quote Originally Posted by paralinx
    zip up the file bro I can't read it unless you use winzip
    www.winzip.com
    It's just a vb form file. You can read it without zipping it up.

  5. #5
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: numbers appearing wrong..

    Quote Originally Posted by Blade
    It's just a vb form file. You can read it without zipping it up.
    Oh yea, sorry I tried opening it and not saving it. Well we all know who's the smart one here

  6. #6
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: numbers appearing wrong..

    This :

    VB Code:
    1. Defender_Troops = Val(a1.Text)
    2.     Defender_Turrets = Val(a2.Text)
    3.     Defender_Tanks = Val(a3.Text)

    should be with "d"s instead of "a"s


    Has someone helped you? Then you can Rate their helpful post.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Jun 2005
    Posts
    31

    Re: numbers appearing wrong..

    wow, i really need to find my glasses, so obvious i didnt catch that.... well thanks for pointing it out to me.
    Thanks for the help
    - Bored Teenager -

  8. #8
    Addicted Member
    Join Date
    May 2005
    Posts
    168

    Re: numbers appearing wrong..

    Hi,

    manavo11:

    I see why you have so many posts but I will forgive you since you missed tech2. <g>

    Have a good one!
    BK

  9. #9
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: numbers appearing wrong..

    Quote Originally Posted by Black__Knight
    Hi,

    manavo11:

    I see why you have so many posts but I will forgive you since you missed tech2. <g>

    Have a good one!
    BK
    Huh? What's tech2?

    I realise that my post is after yours but give me a break, I'm on a slow connection so when I hit reply, yours wasn't there yet


    Has someone helped you? Then you can Rate their helpful post.

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Jun 2005
    Posts
    31

    Re: numbers appearing wrong..

    up caught that two after i found out wut i had did wrong. thnx anyway though.
    Thanks for the help
    - Bored Teenager -

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