Reply from OASys1 on Apr 10 at 10:34 AM Hmmmmm, Good points all... I like Michael's reply the best... Only 2 comparisons are made, no more, no less... very easy to follow... But, my style has been in the past to follow along what Eyo posted. Thanks to both... as well as the bit about variable declarations... I have found that even if something had been "fixed", I still explicitly declare things... I know it may be more work in the long run... but there is no doubt about what my vars are declared as ! :-) Regards, Bruce V. .aka...OASys1
| | | ---------------Original Message--------------- From: trpro Sent: Monday, April 09, 2012 9:28 PM Subject: How to Return a High Value from Three Different Textboxes? strHighGame = CStr(Val(lblHighGame.Text)) lblHighGame.Text = CStr(Val(txtScore1.Text)) If Val(txtScore2.Text) > Val(txtScore1.Text) Then strHighGame = CStr(Val(txtScore2.Text)) If Val(txtScore3.Text) > Val(txtScore2.Text) Then strHighGame = CStr(Val(txtScore3.Text)) This is my code so far, I'm not sure what else I can do? Maybe do a for next? which I'm not sure how to write? I need to pull the Highest value from txtScore1 - txtScore 3 Anyone got a good idea how to do this? | | Reply to this email to post your response. __.____._ | _.____.__ |
No comments:
Post a Comment