Helt nøjagtig så skriver den dette:
[Error] Unit1.pas(145): '[' expected but 'IS' found
[Error] Unit1.pas(146): Missing operator or semicolon
[Error] Unit1.pas(146): '[' expected but ')' found
[Error] Unit1.pas(45): Unsatisfied forward or external declaration: 'TForm1.TBItem11Click'
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'
Mvh
Jesper
<pre>var
i: integer;
begin
for i := 0 to Form1.ComponentCount - 1 do
if Form1.Components[I] is TSynEdit then
TSynEdit(Form1.Components[I]).Lines.Add('blabla');</pre>
Prøv dette. [I] Bliver slettet hvis i er lille (siden tror at du vil have skriften
kursiv).
Emil Melgaard
emil.melgaard@private.dk[Redigeret d. 28/08-02 16:11:14 af Emil]