| | Can some give me a hand on delphi?
|
|
Hello, After making the my first interactive demo I notice that the are too many IF and too much code for a simple project so I whould like to know how to make this if in to a " CASE " you know all a case x of . Well here is the if. ......... if (X (...) (23 years ago, 9-May-02, to lugnet.cad)
|
|
| | Re: Can some give me a hand on delphi?
|
|
You could make one big if for the (X > 280) and (Y > 20) and (X < 320) and (Y < 220) because that's the same for all. if (X > 280) and (Y > 20) and (X < 320) and (Y < 220) then if (label1.Caption = 'Spot 1 front') then begin (...) (23 years ago, 9-May-02, to lugnet.cad)
|
|
| | Re: Can some give me a hand on delphi?
|
|
Also I think this is more an .cad.dev question. Roland (...) (23 years ago, 9-May-02, to lugnet.cad)
|
|
| | Re: Can some give me a hand on delphi?
|
|
(...) I think I'll use the big IF for now as I don't know how to do the other way thanks a lot. (...) FTP is on until 24:00 spanish night time ftp://ldraw:ldraw@21...136:20202/ (23 years ago, 9-May-02, to lugnet.cad)
|