tab character

Can anyone tell me what the code is to insert a tab in a textfile ?

By exam. with chr$(13) you can insert an CR/LF
RichardBorstAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kretzschmarCommented:
hi Richard,
#9 is the tabchar (Chr(9))
meikl
0
DrDelphiCommented:
CHR$(13)? Uh-oh... VB Alert!!<g>
0
kretzschmarCommented:
:-))
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

nricoCommented:
Nitpicker alert:

#13 is only the CR
#10 is the LF
(and yes, #9 is the TAB)
0
nricoCommented:
:-)
0
bogieman_Commented:
>:-|
0
guntherdsCommented:
it's character 12!
0
kretzschmarCommented:
nope guntherds,

a part from the virtuel keycode defintions

  VK_BACK = 8;       //backspace
  VK_TAB = 9;         //tab
  VK_RETURN = 13; //enter/return

meikl
0
intheCommented:
it is definetly 9

this will show you:

procedure TForm1.Edit1KeyUp(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
showmessage(inttostr(key));
end;

the points are meikls..
0
guntherdsCommented:
my opinion is: it doenst work on ASCII-files, if I remember well, I had this problem a few days ago, and I solved it with character 12
but unfortunately, (or fortunately) its weekend, and I can't check it at work,
but if you're right, congratulations, I'm sorry
0
RichardBorstAuthor Commented:
I work with #9. this works
0
kretzschmarCommented:
hi richard,

glad that #9 works for you

i guess i should answer
happy new year

meikl ;-)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RichardBorstAuthor Commented:
I thought I accepted your comment as an answer already more then a week ago.

Anyway, again.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.