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.

function GetFieldSize(dbf, f :integer): integer;

GetFieldSize returns a length of the specified field.

var dbf :integer; r, f :integer; begin dbf := OpenBase( 'filename.dbf' ); if dbf <> 0 then begin for f := 0 to FieldCount( dbf )-1 do begin write( GetFieldName(dbf, f) ); write(' -- '); write( GetFieldType(dbf, f) ); write(' -- '); write(inttostr( GetFieldSize(dbf, f) )); write(' -- '); write(inttostr( GetFieldFloat(dbf, f) )); writeln(''); end; CloseBase(dbf); end; end.

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