Note that there are some explanatory texts on larger screens.

plurals
  1. POHaving difficulty with Delphi if statements
    primarykey
    data
    text
    <p>Note: Do not edit the layout of this code! (See answer below for the reason)</p> <pre><code>procedure TForm1.ReadCardTimer(Sender: TObject); begin ReadCard2(StrToInt(PChar('$' + Form2.Edit1.Text)),1); ReadCard2(StrToInt(PChar('$' + Form2.Edit3.Text)),2); ReadCard2(StrToInt(PChar('$' + Form2.Edit2.Text)),3); ReadCard2(StrToInt(PChar('$' + Form2.Edit4.Text)),4); ReadCard2(StrToInt(PChar('$' + Form2.Edit5.Text)),5); ReadCard2(StrToInt(PChar('$' + Form2.Edit6.Text)),6); ReadCard2(StrToInt(PChar('$' + Form2.Edit7.Text)),7); ReadCard2(StrToInt(PChar('$' + Form2.Edit8.Text)),8); ReadCard2(StrToInt(PChar('$' + Form2.Edit9.Text)),9); ReadCard2(StrToInt(PChar('$' + Form2.Edit10.Text)),10); ReadCard2(StrToInt(PChar('$' + Form2.Edit11.Text)),11); ReadCard2(StrToInt(PChar('$' + Form2.Edit12.Text)),12); ReadCard2(StrToInt(PChar('$' + Form2.Edit13.Text)),13); ReadCard2(StrToInt(PChar('$' + Form2.Edit14.Text)),14); if NewValue = 0 then Image1.Hide; Image2.Hide; if NewValue &gt; 0 then Image1.Show; Image2.Show; UpdateCardImage(NewValue,NewValue2,'Image1'); UpdateCardImage(NewValue3,NewValue4,'Image2'); UpdateCardImage(NewValue5,NewValue6,'Image3'); UpdateCardImage(NewValue7,NewValue8,'Image4'); UpdateCardImage(NewValue9,NewValue10,'Image5'); UpdateCardImage(NewValue11,NewValue12,'Image6'); UpdateCardImage(NewValue13,NewValue14,'Image7'); end; </code></pre> <p>For some reason the second image i try and hide... wont hide... I can comment out the first one and the second one will hide whats going on here?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload