Gentee Programming Language > Documentation > Libraries | Download documentation |
This library is used to work with dbf files. The formats dBase III and dBase IV are supported. To be able to work, you should describe a variable of the dbf type. For using this library, it is required to specify the file dbf.ge (from Lib subfolder) with include command.
Operations defined for the variable of dbf type are listed below. The second column contains possible statements where typename is a variable or an expression of the specified type.
Operation Syntax Return type Comments * uint Get the number of records in the database. foreach Looking through all records with the help of the foreach operator. The current record is different for each iteration. foreach cur,base
// cur - number of the current record
{
...
}
dbf.append | Adding a record |
dbf.bof | First record check |
dbf.bottom | Last record check |
dbf.close | Closing a database |
dbf.create | Creating a database |
dbf.del | Settings clearing the deletion mark |
dbf.empty | Creating an empty copy |
dbf.eof | Checking if a record is defined in the database |
dbf.geterror | Getting an error code |
dbf.go | Moving to a record |
dbf.isdel | Getting the record deletion mark |
dbf.open | Opening a database |
dbf.pack | Packing a database |
dbf.recno | Getting the number of the current record |
dbf.skip | Moving to another record |
dbf.top | Moving to the first record |
dbf.f_count | Number of fields |
dbf.f_date | Getting a date |
dbf.f_decimal | Getting the size of the fractional part in a numerical field |
dbf.f_double | Getting a numerical value |
dbf.f_find | Getting the number of a field by its name |
dbf.f_int | Getting the value in the form of a number |
dbf.f_logic | Getting a logical value |
dbf.f_memo | Get the value of a memo field |
dbf.f_name | Field name |
dbf.f_offset | Field offset |
dbf.f_ptr | Pointer to data |
dbf.f_str | Getting a value |
dbf.f_type | Field type |
dbf.f_width | Field size |
dbf.fw_date | Writing a date |
dbf.fw_double | Writing a numerical value |
dbf.fw_int | Writing a numerical value |
dbf.fw_logic | Writing a logical value |
dbf.fw_memo | Writing a value into a memo field |
dbf.fw_str | Writing a value |
![]() |
![]() Copyright © 2004-2006 Gentee Inc. All rights reserved. ![]() |