In Dire need of Help! 
Author Message
 In Dire need of Help!


Subject: Not So Simple Solution
Date: Wednesday, March 11, 1998 9:48 PM

Somebody help me?!?

I have spent 10 hours on this project with no progress. If you would be so
kind as to provide more assistance, I would be forever grateful. I'm lost in
the logic of this program, and it seems that the more time I spend on this
project, the more I get confused. I've completed the form, and have assigned
the properties. I completed the code, in (For/Next loops) for the controls,
and lbl2, and now I'm hung up on the Command1_Click event procedure.

The assignment reads like this:

In the Command1_Click event procedure, assign the clicked button's value to
the next judge's score. In other words, the first click is the score for
Judge 1 and replaces the caption in Label1(0). The next click provides the
scare for Judge 2, and so on.

When the score for Judge 5 is recorded, the program should automatically
calculate the average score and display it in the caption for Label4. The
score should be accurate to one decimal place. "Adapted from Spear & Spear"

Thank You,



Wed, 30 Aug 2000 03:00:00 GMT  
 In Dire need of Help!

Quote:


> Subject: Not So Simple Solution
> Date: Wednesday, March 11, 1998 9:48 PM

> Somebody help me?!?

> I have spent 10 hours on this project with no progress. If you would be so
> kind as to provide more assistance, I would be forever grateful. I'm lost in
> the logic of this program, and it seems that the more time I spend on this
> project, the more I get confused. I've completed the form, and have assigned
> the properties. I completed the code, in (For/Next loops) for the controls,
> and lbl2, and now I'm hung up on the Command1_Click event procedure.

> The assignment reads like this:

> In the Command1_Click event procedure, assign the clicked button's value to
> the next judge's score. In other words, the first click is the score for
> Judge 1 and replaces the caption in Label1(0). The next click provides the
> scare for Judge 2, and so on.

> When the score for Judge 5 is recorded, the program should automatically
> calculate the average score and display it in the caption for Label4. The
> score should be accurate to one decimal place. "Adapted from Spear & Spear"

> Thank You,


 Plese post the code...


Thu, 31 Aug 2000 03:00:00 GMT  
 In Dire need of Help!


Quote:
>In the Command1_Click event procedure, assign the clicked button's value to
>the next judge's score.

This is an abuse for the phrase "the Command's buttons's value".
Strictly speaking, the value of a command button isTrue when clicked,
and False otherwise.

Quote:
> In other words, the first click is the score for
>Judge 1 and replaces the caption in Label1(0). The next click provides the
>scare for Judge 2, and so on.

Ah! But that's a whole different thing. I think you need a counter, and
count the number of clicks. Depending on the counter's value, you need
to do different things. From 1 to 5, you need to show that judge's
score. As soon as all five are shown (is that click 5 or click 6?),
display the average.

HTH,
Bart.



Fri, 01 Sep 2000 03:00:00 GMT  
 In Dire need of Help!

On Sat, 14 Mar 1998 23:21:43 -0800, "MICHAEL  FAITH"

Quote:

>I have spent 10 hours on this project with no progress. If you would be so
>kind as to provide more assistance, I would be forever grateful. I'm lost in
>the logic of this program, and it seems that the more time I spend on this
>project, the more I get confused. I've completed the form, and have assigned
>the properties. I completed the code, in (For/Next loops) for the controls,
>and lbl2, and now I'm hung up on the Command1_Click event procedure.

>The assignment reads like this:

>In the Command1_Click event procedure, assign the clicked button's value to
>the next judge's score. In other words, the first click is the score for
>Judge 1 and replaces the caption in Label1(0). The next click provides the
>scare for Judge 2, and so on.

>When the score for Judge 5 is recorded, the program should automatically
>calculate the average score and display it in the caption for Label4. The
>score should be accurate to one decimal place. "Adapted from Spear & Spear"

You want to use the same commandbutton to calcaulate different scores?
One method is the following:

Sub Form_load
        command1.caption = 'first"
        '....
End Sub

Sub Command1_Click

        select case command1.caption
        case "first"
                command1.caption = "second"
                label1(0).caption = cstr(judge(0))
        case "second"
                command1.caption = "third"
                label1(1).caption = cstr(judge(1))              
        case "third"
                command1.caption = "fourth"
                label1(2).caption = cstr(judge(2))
        case "fourth"
                command1.caption = "fifth"
                label1(3).caption = cstr(judge(3))
        case "fifth"
                command1.caption = "first"
                label1(4).caption = cstr((judge(1) + judge(2) + _      
                        judge(3) + judge(4)) /4)
        end select

End Sub

To use decimals see the help on Format..

good luck
gr. Walther

----- it's the line -----
Walther Musch; Tilburg University
http://pi1438.kub.nl:2080/VisualBasicSource/



Fri, 01 Sep 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. I am in dire need of help!

2. In Dire Need of Help!

3. DIRE NEED OF HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

4. In dire need of help before our project fails miserably.....

5. Newbie in dire need of help: referencing subreports fields?

6. run-time error 430 (HELP!! IN DIRE NEED)

7. In dire need of some Help----Formatting issues

8. novice in dire need

9. in dire need of control!!!!!!!!

10. Dire Straits

11. HELP! Dire need for the definitive VB416 TASK APPACTIVATE code!!

12. {Need Help Big Project Need Help}

 

 
Powered by phpBB® Forum Software