pjhayward's Pascal Tutorial


pjhayward.net Home

Got a question?

Tutorial Home
Preparation
Lesson One - Sample Program
Lesson Two - Program Structure
Lesson Three - Data Types
and Constants
Lesson Four - Variables
Lesson Five - Text I/O
Lesson Six - Subroutines
Lesson Seven - Conditional
Statements
Lesson Eight - Arrays
Lesson Nine - Loops
Lesson Ten - Units
How do you put a tab into a string?
The tab character is ASCII 9, so if you define the constant
 TAB = #9; 
you can do it like this:
somestring:=TAB+'This string starts with a tab';
somestring2:='This'+TAB+'string'+TAB+'is'+TAB+'tab'+TAB+'delimited';
Check out http://asciitable.com for the complete ASCII character table.

Back to Question/Answer list