Recent

Author Topic: Identifier not found key_Tab  (Read 4892 times)

Anonymous

  • Guest
Identifier not found key_Tab
« on: May 27, 2004, 08:43:32 pm »
I get a
Code: [Select]
Identifier not found "key_Tab" error when I try to use the constant key_Tab, which exists in the documentation. I am new to Lazarus and Pascal.
Code: [Select]
Edit1.Text:= 'a' +key_Tab + 'b';

Anonymous

  • Guest
Identifier not found key_Tab
« Reply #1 on: May 28, 2004, 03:31:24 am »
use #9 instead

Edit1.text := 'a' + #9 + 'b';

eric

  • Sr. Member
  • ****
  • Posts: 267
Re: Identifier not found key_Tab
« Reply #2 on: May 29, 2004, 08:25:54 am »
Quote from: "Anonymous"
I get a
Code: [Select]
Identifier not found "key_Tab" error when I try to use the constant key_Tab, which exists in the documentation. I am new to Lazarus and Pascal.
Code: [Select]
Edit1.Text:= 'a' +key_Tab + 'b';


You need to add lcltype to your uses clause. But this doesn't solve your particular problem, because the VK_ codes are virtual key codes, not characters. Virtual key codes are used in the OnKeyDown and OnKeyUp events. If you simply want the tab character, then use #9.

Eric


Eric

 

TinyPortal © 2005-2018