-
Notifications
You must be signed in to change notification settings - Fork 0
pts tutorial2 module9
(Continues on from the "TextAttribs" script - requires you to follow the previous section first)
| The following commands are used in this module: ALIGN EOL TEXT |
|---|
Continuing on from your current script ...
- Insert a new TEXT command, anything you like.
- Insert EOL.
Did it come out the way you expected? Some of you are probably nodding, some are probably shaking their heads (some are probably staring wild-eyed at the screen, wondering what this is all about).
If you have been following instructions in sequence and carefully, it should have come out right-aligned again. But we didn't issue a Right ALIGN command this time! What gives? The parser remembered the current state, as the previous script commands left it.
This is fairly important to remember: a change in text state (colour, font, alignment, effects, banner, highlight, size) continues indefinitely until you explicitly change it back. This saves you constantly issuing commands to get a block of lines in the same state, which would be tedious and would generate a cluttered script.
Continuing with this script:
- Try inserting another Right ALIGN command.
- When you click Insert, observe the script. It didn't put in "ALIGN RIGHT", did it? Why not?
Because we are already right-aligned; it's still in effect from when we last set alignment, as proved by the previous line going to the right of its own accord. The editor / parser will not insert a script command if it has no effect on the current state, since that too would be pointless and cluttered. This one may take some time to get used to, but you will understand how useful it is eventually.
| Now, please: Click Save Script click Close Script Then when you are ready continue with module 10. |
|---|
| Previous Module | Next Module |
|---|
Copyright © 2002 - 2025 by Andrew Truckle. All Rights Reserved.
- Using Public Talks
- Main Application Menu
-
Database Ribbon Panel
- Assignments Editor
- Backup Database
- Check Talk Exchange
- Compact Database
- Convert Database
- Create Unassigned Date Entries
- Database Security
- Maintain Databases
- Purge Database
- Rearrange Dates
- Restore Database
- Help Ribbon Panel
-
Home Ribbon Panel
- Create a Report
-
Manage Custom Reports
- Editing Scripts
- Content Ribbon Panel
- System Ribbon Panel
- Script Command Syntax
-
Tutorials
- Using The Script Editor
-
How To Write Scripts
- Module 1 - The Basics
- Module 2 - Hello, World!
- Module 3 - Multiple Text Blocks
- Module 4 - It's A Date, Then
- Module 5 - Oh, I'm Blushing!
- Module 6 - It is a Rainbow!
- Module 7 - The Font Of All Knowledge
- Module 8 - Queue To The Right
- Module 9 - Memory Like An Elephant
- Module 10 - May I Squeeze In There?
- Module 11 - Move Over, Please
- Module 12 - You Move Over Here
- Module 13 - Is My Back A Funny Colour?
- Module 14 - I'm Going Loopy Here!
- Module 15 - Fields Of Golden... Text
- Module 16 - Man, That Looks Weird
- Module 17 - Inner Peace, Inner Loop
- Advanced Script Features
- Quick Access Toolbar
- Settings Ribbon Panel
- Tools Ribbon Panel
- Revision History
- Contact Information