473,386 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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
4 949
Killer42
8,435 Expert 8TB
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
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
Killer42
8,435 Expert 8TB
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
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

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

Similar topics

16
by: Chuck Amadi | last post by:
Sorry to bovver you again (again) here's script. I still can't see why the get_payload() doesn't produce the plain text message body of an emails in the testwwws users mailbox. As you can see I...
7
by: Diandian Zhang | last post by:
Does anyone have an idea, how to do it? Thanks in advance!
0
by: Microbof | last post by:
I am trying to produce a database to keep assessment levels for a group of students. So in the first database I made a table with a unique pupil number and 7 assessment boxes. I then made...
6
by: Tarren | last post by:
Hi: I have an aspx page that takes a dataset, makes the datagrid, and displays it. The new thing I have to do is take this same output and send it as an email. Is there an easy way to do...
1
by: Andrew | last post by:
I'm adding this as it to me a while to figure out all the pieces to be able to do this without using Microsoft.Office.Interop which caused me problems on the web-server. Streaming is the easy...
0
by: yolanda | last post by:
hi,all when I try to use the "create data mining " and system.oledb in c#,i met with this problem .my source code is: using System; using System.Data.OleDb; static void Main(string args) {...
17
by: Big Charles | last post by:
Hello, Recently, a friend of mine has told me that he is a .NET System Architect. What is a .NET System Architect? What are their functions? What is the difference between an Architect and a...
2
by: yuori | last post by:
Hi this is my first time creating an online e-assessment system. i'm not too sure on how to set a time limit for each test papers that the user taken. The time would be shown after the test has...
2
by: gabosom | last post by:
Hi! I've been breaking my head trying to get the output variables from my Stored Procedure. This is my SP code CREATE PROCEDURE GetKitchenOrderDetail( @idService int, --outPut Variables ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.