Recent

Author Topic: KOL-MCK and ControlByName  (Read 5623 times)

magi6162

  • New Member
  • *
  • Posts: 42
KOL-MCK and ControlByName
« on: December 28, 2009, 10:33:51 am »
Can not find the function form.ControlByName with KOL-MCK.
Can someone help me?

thanks
i use
Lazarus-0.9.28.2-0/fpc-2.2.4-091003-cross-arm-wince-win32.exe
on ubuntu 9.04 / windows XP

magi6162

  • New Member
  • *
  • Posts: 42
Re: KOL-MCK and ControlByName
« Reply #1 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.
i use
Lazarus-0.9.28.2-0/fpc-2.2.4-091003-cross-arm-wince-win32.exe
on ubuntu 9.04 / windows XP

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7510
Re: KOL-MCK and ControlByName
« Reply #2 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

magi6162

  • New Member
  • *
  • Posts: 42
Re: KOL-MCK and ControlByName
« Reply #3 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
i use
Lazarus-0.9.28.2-0/fpc-2.2.4-091003-cross-arm-wince-win32.exe
on ubuntu 9.04 / windows XP