Product Home
DTM Data Generation SDK Online Documentation Prev Page Prev Page
Product Profile
SDK components
Functions map
Low level API
Short Random
Integer Random
Random Symbol
Double Random
Random String
Random Date
Random Time
C/C++ example
Fill Methods level API
From list
From file
From table
From Values Library
Incremental
By maks
By SQL statement
Rule level API
Rule properties
Rule items
One rule item
Project level API
Project operations
Project properties
Project rules
Object handles
Database connection
Error handling
SDK limitations
Build application with SDK
License agreement

From Values Library fill method

Library Initialization
C/C++
DG_HANDLE InitLibrary(char *LibraryLocation, char *LibraryItem)

C#/VBA/scripts
int InitLibrary(string LibraryLocation, string LibraryItem)
'LibraryLocation' is a full or relative path to the file contains Values Library.
'LibraryItem' specifies list of values. See table below for acceptable options.

Generate value
C/C++
char* LibraryValue(DG_HANDLE handle,int sequentially)

C#/VBA/scripts
string LibraryValue(int handle,int sequentially)
Not 0 'sequentially' value means the function will return values from the library item sequentially, random otherwise.

Default Values library contains at least following items:

Item Name Description
Colors English colors (145 items)
Names Sample full names (about 380 items)
Occupations  
LastNames List of sample last names
departments Typical departments
Industries List of industries
CurrencyCodes World currency codes (3 symbols)
monthes English months list
companies The list of about 680 most known companies
FemaleFirstNames Female names
MaleFirstNames Male names
EuropeanCities List of European cities
EuropeanCountries List of European countries
EuropeanCapitals List of capitals of European countries
Countries World countries list
region World regions
US_ZipCodes ZIP codes (USA)
US_States List of US states
US_StateCapitals List of US state's capitals

Note: all DTM Data Generator customers can create own library or modify default library with Library Builder and included sources.