Product Home
DTM Data Generator Online Documentation Prev Page Prev Page
General
Product Profile
Product Versions
Quick Start
Rule Wizard
System Requirements
Connect to Database
Quick Start
Direct Connection
Connect to Desktop File
Data Sources
DSN File
OLE DB Connection
Connection Profile
Connection Information
Troubleshooting Guide
Project Properties
Project Report
Program Settings
General
Interface
Rule and Project
Execution
Date and Time
Execution
Random BLOB Loader
Project Migration
Database Model Viewer
Fill Table Rule
Table Fill Modes
Table Fill Options
Tables Options
Columns Options
Row count
Scripts
Rule Output
Preview
Fill Methods
Method Options
Random Values
Value List
From Table
List from File
From Value Library
Incremental
By Pattern
By SQL Statement
Named Generators
Field Groups
Advanced Rules
Clear Rule
Tables Creation Options
Objects Creation
File Rule
Advanced Features
Custom Generators
Tables Selection
Bulk Project Modification
Table Information
Value Library
Variables
Execution Report
Change Target Table
Command Line
Performance Tips
Performance Mode
Format Strings
Select Column
SQL Console
Data Export
Hot keys
How to...
Additional Info
Product Ordering
Database Utilities
Licence Agreement
Demo Version
Install
Uninstall
Upgrade
Support
Log File
Trademark Information
Glossary

Format strings

Data Generator uses C/C++-like format strings. A format string consists of its format specification and the rest of characters that are put into the result unchanged.
A format specification always starts from the % sign. If it is necessary to use this character as a character instead of a formatting element, it should be doubled.

The most useful format types are:

  • %d - a signed decimal integer. You can use width for this field, for example, %5d. If you specify the width as %05d, the program will add non-significant zeros to reach the specified width.
  • %x - a hexadecimal integer. Uses lowercase letters for hexadecimal integers. %X uses uppercase letters.
  • %f - a value in the form dddd.dddd, where dddd is one or more decimal digits. It is possible to specify sizes in the form %5.2f (2 corresponds to the number of decimal digits here, while 5 is the total).
  • %s - a string. '-' (minus) means alignment to the right if it is specified together with the width.