Forum > Other
Identifier not found key_Tab
(1/1)
Anonymous:
I get a
--- Code: --- Identifier not found "key_Tab"
--- End code ---
error when I try to use the constant key_Tab, which exists in the documentation. I am new to Lazarus and Pascal.
--- Code: ---Edit1.Text:= 'a' +key_Tab + 'b';
--- End code ---
Anonymous:
use #9 instead
Edit1.text := 'a' + #9 + 'b';
eric:
--- Quote from: "Anonymous" ---I get a
--- Code: --- Identifier not found "key_Tab"
--- End code ---
error when I try to use the constant key_Tab, which exists in the documentation. I am new to Lazarus and Pascal.
--- Code: ---Edit1.Text:= 'a' +key_Tab + 'b';
--- End code ---
--- End quote ---
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
Navigation
[0] Message Index