Hi,
sl ist:
Code:
#include
{
class main = StdClass
{
#proc+
main
run
#proc-
}
}
proc main
{
CreateSButton(10, 10, 20, 50)
}
proc run
{
main
}
proc ist:
Warum bekomme ich jeweils 2x die Meldung "main is correct" und "run is correct", statt nur 1x (gewünscht) ?
Delphi-Quellcode:
for i := 0 to sl.Count - 1 do
if Copy(Trim(sl[i]), 1, 4) = 'proc' then
for j := 0 to procs.Count - 1 do
if Pos(sl[i], procs[j]) > -1 then
ShowMessage(procs[j] + ' is correct.');