dbfadd - Online in the Cloud

This is the command dbfadd that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


dbfadd - add a row to an xBase DBF file

SYNOPSIS


dbfadd xbase_file field_values...

DESCRIPTION


Adds a row to the DBF file named by xbase_file with column values given by the
field_values options that follow. A NULL value is denoted by an empty argument.

OPTIONS


xbase_file
the name of an existing xBase file

field_values
list of values to be inserted into the xBase file. You must specify a number of
values equal to the number of fields the xBase file has. The order of values must
also reflect the order of fields inside xBase file.

EXAMPLE


dbfadd testbase.dbf REGION1 25.656 150.22

Assuming that testbase.dbf has 3 fields (NAME, AREA and VALUE), this command line will
insert a new record into testbase.dbf with the value "REGION1" for NAME, ´25.656´ for AREA
and ´150.22´ for VALUE field.

EXIT STATUS


0 Successful program execution.

1 Missing xbase_file or field_values arguments.

2 Failed to open xbase_file for reading and appending.

3 Too few values in field_values...

DIAGNOSTICS


The following diagnostics may be issued on stdout:

DBFOpen(xbase_file,"rb+") failed.

Got count1 fields, but require count2

Use dbfadd online using onworks.net services



Latest Linux & Windows online programs