By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,805 Members | 1,273 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,805 IT Pros & Developers. It's quick & easy.

The output of my system of Profession Assessment System that i want.

P: 50
The output of my system that im trying to make is the comparison of the answers. My system only read the second highest score but sometimes the system gets the lowest score which is both wrong. I have noticed that the system only read the first condition and the last condition. I removed the exit sub before the end if that I putted on the condition because the condition terminates on that phrase but its the same problem again my system did not work properly.
Sep 6 '07 #1
Share this Question
Share on Google+
4 Replies


Expert 5K+
P: 8,434
The output of my system that im trying to make is the comparison of the answers. My system only read the second highest score but sometimes the system gets the lowest score which is both wrong. I have noticed that the system only read the first condition and the last condition. I removed the exit sub before the end if that I putted on the condition because the condition terminates on that phrase but its the same problem again my system did not work properly.
Can you please give us a condensed version of the code which produces the problem, so we can cehck out the situation? I assume this is related to the huge chunk of code you posted in another thread. Try chopping out some of the big long strings, and just post the essence, so we can follow the logic.
Sep 6 '07 #2

P: 50
Can you please give us a condensed version of the code which produces the problem, so we can cehck out the situation? I assume this is related to the huge chunk of code you posted in another thread. Try chopping out some of the big long strings, and just post the essence, so we can follow the logic.
Yup, its related to the huge chunk of code that I've posted yesterday.
These is the chop of code that I've made in my system.

Expand|Select|Wrap|Line Numbers
  1. Label12.Caption = Adodc1.Recordset.Fields("lin_ver")
  2.  
  3. 'verbally/linguistic intelligence
  4. If Val(Label12.Caption) > Val(Label13.Caption) Or Val(Label12.Caption) > Val(Label14.Caption) Or _
  5. Val(Label12.Caption) > Val(Label15.Caption) Or Val(Label12.Caption) > Val(Label16.Caption) Or _
  6. Val(Label12.Caption) > Val(Label17.Caption) Or Val(Label12.Caption) > Val(Label18.Caption) Then
  7. Label1.Caption = Val(Label12.Caption)
  8. Label4.Caption = "Verbal/Linguistic Intelligence(Word Smart)"
  9. Label6.Caption = "Verval/Linguistic Intelligence relates to word and language, " & "" & _
  10. "" & "we use this intelligence in listening, speaking, reading & writing. " & "" & _
  11. "" & "(a)Thinks in words " & "" & _
  12. "" & "(b)Highly developed auditory skills " & "" & _
  13. "" & "(c)Play with sounds in laguage " & "" & _
  14. "" & "(d)Great story tellers, tall tales, & jokes " & "" & _
  15. "" & "(e)Love seeing,saying & hearing words " & "" & _
  16. "" & "(f)Head are frequently stuck in a book " & "" & _
  17. "" & "(g)Likes to write"
  18. Label8.Caption = "Understanding order & meaning of words, " & "" & _
  19. "" & "Convincing someone of a course of action, " & "" & _
  20. "" & "Explaining,teaching, & learning, " & "" & _
  21. "" & "Memory and recall, " & "" & _
  22. "" & "Meta-linguistic analysis. "
  23. Label10.Caption = "You can be a Teacher, Journalist, Writer, Lawyer, " & "" & _
  24. "" & "and Translator"
  25.  
Sep 6 '07 #3

Expert 5K+
P: 8,434
Yup, its related to the huge chunk of code that I've posted yesterday.
These is the chop of code that I've made in my system...
What I meant was, if your problem is with the IF logic, then lose the huge strings, and show us the logic. That is, the IFs, ELSEs and so on. The things that actually control the execution and apparently have a problem.
Sep 6 '07 #4

P: 50
What I meant was, if your problem is with the IF logic, then lose the huge strings, and show us the logic. That is, the IFs, ELSEs and so on. The things that actually control the execution and apparently have a problem.
No, but the output generated by the system is not correct. The system didn't get the highest value being computed. For example; the value of labels are the
ff: label12.caption=16, label13.caption=15, label14.caption=15, label15.caption=14, label16.caption=14, label17.caption=12 and label18.caption=10 then the if condition will choose the second highest value which is label15.caption=15 but sometimes the condition chooses the lowest value which is label18.caption=10. Based on the code that I've posted earlier I got the logic clearly but I didn't know what's the problem of the condition.
Sep 6 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.