---
name: "PX_get_field"
section: "3"
platform: "linux"
package: "pxlib-dev"
version: "0.6.9-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PX_get_field"
---

# PX\_get\_field(3)

Returns single field definition in Paradox file

## NAME

PX\_get\_field — Returns single field definition in Paradox file

## SYNOPSIS

\#include \<paradox.h\>

pxfield\_t \*PX\_get\_field(pxdoc\_t \*pxdoc, int fieldno)

## DESCRIPTION

Returns the meta data of the field with the given number in a  Paradox file. The first field has number 0, the last one has  number\_of\_fields-1. pxfield\_t is defined as

```
typedef struct px_field pxfield_t;
struct px_field {
char *px_fname;
char px_ftype;
int px_flen;
int px_fdc;
};
```

The meaning of px\_ftype is as following:

**Values and meaning of px\_ftype**

| | |
| --- | --- |
| Value | Meaning |
| pxfAlpha | T{ |
| Character string with a maximum of px\_flen charackters. |
| T} |
| pxfDate |  |
| pxfShort | Short integer (16 Bit) |
| pxfLong | Long integer (32 Bit) |
| pxfCurrency |  |
| pxfNumber |  |
| pxfLogical |  |
| pxfMemoBLOb |  |
| pxfBLOb |  |
| pxfFmtMemoBLOb |  |
| pxfOLE |  |
| pxfGraphic |  |
| pxfTime |  |
| pxfTimestamp |  |
| pxfAutoInc |  |
| pxfBCD |  |
| pxfBytes | Array of bytes. |

## RETURN VALUE

Returns pointer to field on success and NULL on failure.

## SEE ALSO

[PX\_get\_record(3)](/PX_get_record/3.md), [PX\_get\_fields(3)](/PX_get_fields/3.md)

## AUTHOR

This manual page was written by Uwe Steinmann uwe@steinmann.cx.
