4D Blog

Home Product 4D Write Pro: use leading characters for tabs

4D Write Pro: use leading characters for tabs

January 16, 2018

Product

No matter what line of work you are in, you may want to know how to use tabs (left, right, center, decimal tab). They are quite useful as, for example, they allow you to structure documents by separating and indenting your information.

In typography and design, details matter. But getting details just right can be quite time-consuming. 4D Write Pro now provides an additional functionality to fine tune your design in an instant: leading characters. You know the repeated dots or other characters in a table of contents … the ones that go from the end of the text in your first column to the beginning of the text in the second column? That’s them!

User scenario

Leading characters for tabs are used for many purposes. As stated in the introduction, one of the most common scenarios is the simple dots to facilitate reading. Like those in a table of contents for example:

                    Chapter 1 …………………………………………………………………………………15

Another scenario could be pre-filled checks. You fill the left part of numbers or names where money is involved, so the possibility of modification is reduced:

Due :  ***********15,45 € to  Mr xxxxxxxxxxxxxxx Doe

Use leading characters in 4D Write Pro

These leading characters are now available directly from the interface: a new “leading characters” item is present in the contextual menu when you click on an existing tab in the ruler area. This menu allows you to select the character you want from a predefined list ,or you can simply choose your own!

If you prefer to define these leading characters programmatically, you can take advantage of a new selector (wk tab stop leadings) that can be used with the WP SET ATTRIBUTES command:

// Use "-" as tab leading character
WP SET ATTRIBUTES($range;wk tab stop leadings;"-")

You can also set as many leading characters at once using an array:

ARRAY TEXT($_TabLead;0) 
APPEND TO ARRAY($_TabLead;"") 
APPEND TO ARRAY($_TabLead;"") 
APPEND TO ARRAY
($_TabLead;"*") 
APPEND TO ARRAY
($_TabLead;"") 
APPEND TO ARRAY
($_TabLead;"*") 
APPEND TO ARRAY
($_TabLead;"") 
WP SET ATTRIBUTES
($range;wk tab stop leadings;$_TabLead)

Here’s a video demonstrating this feature:

Discuss

Tags 4D Write Pro, v16 R6, v17, Word processor

Latest related posts

  • February 3, 2026

    4D Write Pro – Adding a margin automatically when bullets are set using standard actions

  • January 22, 2026

    Transform Static Documents into Actionable Knowledge with AIKit

  • January 22, 2026

    Deploy Fluent UI effortlessly in your 4D applications

Roland Lannuzel
Roland Lannuzel
• Product Owner & 4D Expert • After studying electronics, Roland went into industrial IT as a developer and consultant, building solutions for customers with a variety of databases and technologies. In the late 80’s he fell in love with 4D and has used it in writing business applications that include accounting, billing and email systems.Eventually joining the company in 1997, Roland’s valuable contributions include designing specifications, testing tools, demos as well as training and speaking to the 4D community at many conferences. He continues to actively shape the future of 4D by defining new features and database development tools.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 21 R2 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Formula Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience vscode Web Word processor

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 21 R2 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Formula Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience vscode Web Word processor
Subscribe to 4D Newsletter

© 2026 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy