1 Attachment(s)
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.
Re: numbers appearing wrong..
zip up the file bro I can't read it unless you use winzip
www.winzip.com
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
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.
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 :lol:
Re: numbers appearing wrong..
This :
VB Code:
Defender_Troops = Val(a1.Text)
Defender_Turrets = Val(a2.Text)
Defender_Tanks = Val(a3.Text)
should be with "d"s instead of "a"s :)
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.
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
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? :ehh:
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 ;)
Re: numbers appearing wrong..
up caught that two after i found out wut i had did wrong. thnx anyway though.