WhiteTown Software, the official website.
Site map Home News Download Order Contacts Service   RU

General
Overview
Main Window
Menu File
Menu View
Menu Edit
Dialog Options
Menu Script
Menu Help
How to buy
Command line
Language Reference
Script structure
Data types
Classes
Functions
Events
Enumerations, Sets and Arrays
Pascal
C++
Java Script
Visual Basic
Functions
OpenBase
CloseBase
RecCount
FieldCount
ReadRecord
WriteRecord
FieldNumber
GetStr
GetValue
IsMemoField
IsDigitalField
IsCurrentDeleted
IsDeleted
ClearRecord
ClearField
SetValue
MarkDeleted
RecallRecord
DeleteRecord
AppendRecord
InsertRecord
SortBase
RemoveSort
SetFilter
RemoveFilter
Pack
Zap
Write
Writeln
StopScript
GetFileType
GetRecordLength
GetFieldName
GetFieldType
GetFieldSize
GetFieldFloat
NewDatabase
AddField
CreateDatabase
CreateAndOpenDataBase
RecordToCSV
SetCodepage
ParamCount
ParamStr

CDBF for Windows
CDBF for Windows (console)
CDBF for DOS
CDBF for Linux
CDBFlite
CDBFapi
DBF Script
CDBFinfo
CDBFShell
CDBFview

Online Database Converter
New!

Database Converters
DBF to CSV
DBF to MDB (Access)
DBF to XLS (Excel)
DBF to HTML
DBF to SQL
DBF to XML
DBF to PDB (Palm DataBase)
DBF to DBF
MDB (Access) to DBF
XLS (Excel) to DBF
CSV to DBF
PDB (Palm DataBase) to DBF
DBF Converters' Shell

DBF Script Help - a powerful tool to manage DBF files.

Data types

Internally DBF Script operates with the Variant type and is based on it.
Nevertheless, you can use the following predetermined types in your scripts:
Byte      | Same as Integer type
Word      |
Integer   |
Longint   |
Cardinal  |
TColor    |

Boolean   | Boolean type

Real      | Same as Extended type
Single    |
Double    |
Extended  |
TDate     |
TTime     |
TDateTime |

Char      | Char type

String    | String type

Variant   | Same as Variant type
Pointer   |

Array     | Array type

C++Script maps some types to standard types:


int, long = Integer
void = Integer
bool = Boolean
float = Extended

JScript has no types, all types are variants. BasicScript may have types (for example, dim i as Integer), or may have no types and even no variable declaration. In this case a variable will have Variant type.

Not all of these types can be assign-compatible. Like in Object Pascal, you can't assign Extended or String to an Integer. Only one type - the Variant - can be assigned to all the types and can get value from any type. Except the built-in types you can use the enumerated types defined in your application or in add-in modules (for example after adding the TfsGraphicsRTTI component you can use TPenMode, TFontStyles and other types).

0.000801086425781 | Privacy policy | Copyright © 1996-2010, WhiteTown Software