Advertisement

04.04.2008 at 01:18AM PDT, ID: 23295295
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

need to make procedure Tform1.shapeColorChange (); work for.....

Asked by pr2501 in Programming Languages, Delphi Programming

First i'll explain how works my procedure, then i'll  tell what i need more:

1:
my buff is intiger namber and if  if it is equal to specific value: it changes the color of tShape.
Like you may see( in code) buff is array and momentaly i work with buff[0].

2:
I need to set code in way that i'll have buff[variable]
And for ich Variable i have to use specific TSape.

Now:
buff[0] sets Shape1,Shape2,Shape3,Shape4,Shape5,Shape6,Shape7,Shape8

Need to make :
buff[variableA:integer] sets Sape1A,Shape2A,Shape3A,Shape4A,Shape5A,Shape6A,Shape7A,Shape8A
buff[variableB:integer]  sets Shape1B,Shape2B,Shape3B,Shape4B,Shape5B,Shape6B,Shape7B,Shape8B
buff[variableC:integer]  sets Shape1C,Shape2C,Shape3C,Shape4C,Shape5C,Shape6C,Shape7C,Shape8C


Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
// color change
 procedure Tform1.shapeColorChange ();
 var returnvalue: Byte;
    f_bit: Byte;
    s_bit: Byte;
    t_bit: Byte;
    fr_bit: Byte;
    fi_bit: Byte;
    six_bit: Byte;
    sev_bit: Byte;
    e_bit: Byte;
 
 begin
  f_bit := 1;
  s_bit := 2;
  t_bit := 4;
  fr_bit := 8;
  fi_bit := 16;
  six_bit := 32;
  sev_bit := 64;
  e_bit := 128;
 
  if buff[0]  and f_bit = f_bit then
    shape1.Brush.Color:=clYellow else shape1.Brush.Color:=clgray;
  if buff[0]   and s_bit = s_bit then
     shape2.Brush.Color:=clYellow else shape2.Brush.Color:=clgray;
  if buff[0]  and t_bit = t_bit then
  shape3.Brush.Color:=clYellow else shape3.Brush.Color:=clgray;
  if buff[0]   and fr_bit = fr_bit then
   shape4.Brush.Color:=clYellow else shape4.Brush.Color:=clgray;
  if buff[0]  and fi_bit = fi_bit then
     shape5.Brush.Color:=clYellow else shape5.Brush.Color:=clgray;
  if buff[0]   and six_bit = six_bit then
   shape6.Brush.Color:=clYellow else shape6.Brush.Color:=clgray;
  if buff[0]   and sev_bit = sev_bit then
     shape7.Brush.Color:=clYellow else shape7.Brush.Color:=clgray;
  if buff[0]  and e_bit = e_bit then
 shape8.Brush.Color:=clYellow else shape8.Brush.Color:=clgray;
 end;
[+][-]04.04.2008 at 01:25AM PDT, ID: 21279777

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.04.2008 at 01:44AM PDT, ID: 21279852

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming Languages, Delphi Programming
Sign Up Now!
Solution Provided By: MerijnB
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.04.2008 at 03:36AM PDT, ID: 21280237

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.05.2008 at 02:50AM PDT, ID: 21287588

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 01:36AM PDT, ID: 21312856

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 04:07AM PDT, ID: 21313547

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 05:15AM PDT, ID: 21314019

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628