Click here to Skip to main content
15,886,012 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
if (combobox5.Itemindex:=0) then (combobox1.visible:true+label3.visible:true);
this is in delphi 5
plz i dont know what is the problem her someone can help me plz

i want when i select the first option in combobox5 the combobox1 becom visible and label3 also
Posted
Updated 1-Jan-14 11:06am
v2
Comments
CHill60 1-Jan-14 17:39pm    
That doesn't look like any Delphi code I've seen - which granted isn't a huge amount. You are assigning 0 to combobox5.itemindex and then adding two Booleans?!?
Try if combobox5.Itemindex = 0 then
Begin
combobox1.visible := true;
label3.visible := true;
End;
komokom 6-Jan-14 10:22am    
thank man
Sergey Alexandrovich Kryukov 1-Jan-14 22:58pm    
Very bad. You should not use try-end-error "method", without even a quick look at the language syntax. Helping you would be just a waste of time. Read some language manual and then start over.
—SA

1 solution

As the OP's solution will no doubt be deleted shortly I'm posting my comment as a solution - given the thank you I presume it worked
Quote:
That doesn't look like any Delphi code I've seen - which granted isn't a huge amount. You are assigning 0 to combobox5.itemindex and then adding two Booleans?!?
Try ...

C
if combobox5.Itemindex = 0 then
Begin
     combobox1.visible := true;
     label3.visible := true;
End;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900