Lazarus

Programming => Packages and Libraries => KOL => Topic started by: magi6162 on December 28, 2009, 10:33:51 am

Title: KOL-MCK and ControlByName
Post by: magi6162 on December 28, 2009, 10:33:51 am
Can not find the function form.ControlByName with KOL-MCK.
Can someone help me?

thanks
Title: Re: KOL-MCK and ControlByName
Post by: magi6162 on December 29, 2009, 10:27:03 am
Problem
in LCL:
for i:=0 to count do
  Self.ControlByName('v' + IntToStr(i)).Hint := 'AAAAA';

the same thing with KOL-CE for WinCE?

thanks for the help.
Title: Re: KOL-MCK and ControlByName
Post by: marcov on December 30, 2009, 08:42:30 pm
I know nothing about KOL, but that code is not logical.

The loop iterates from 0 to count, iow count+1 items. >:D >:D >:D
Title: Re: KOL-MCK and ControlByName
Post by: magi6162 on January 04, 2010, 10:38:10 am
Sorry
for i:=0 to count do
begin
  Self.ControlByName('v' + IntToStr(i)).Hint := 'AAAAA';
  inc(i)
end

I had copied the rest

thanks
TinyPortal © 2005-2018