PX_GET_FIELD(3)
π PX_GET_FIELD(3) π
okay bestie, buckle up, because this one lives in the Library Functions Manual and it is literally the little key that unlocks one single field inside a Paradox file. one field. that's the whole job. and she does it flawlessly. π
β¨ NAME β¨
PX_get_field β returns a single field definition from a Paradox file π
β¨ SYNOPSIS β¨
#include <paradox.h>
pxfield_t *PX_get_field(pxdoc_t *pxdoc, int fieldno)
β¨ DESCRIPTION β¨
So basically: you hand her a Paradox file, you tell her which field number you want, and she hands you back the meta data for that field. that's it, that's the vibe. πΈ
heads up tho β the numbering is zero-indexed, as is tradition:
- the first field is number
0 - the last field is number
number_of_fields-1
and the thing she gives you back is a pxfield_t, which is defined exactly like this, no cap:
typedef struct px_field pxfield_t;
struct px_field {
char *px_fname;
char px_ftype;
int px_flen;
int px_fdc;
};
now the fun part. px_ftype is the field's type, and here's the full rundown of what each value means β i am not skipping a single one, bestie, we're doing the whole list π
pxfAlphaβ character string with a maximum ofpx_flencharackters.pxfDatepxfShortβ short integer (16 Bit)pxfLongβ long integer (32 Bit)pxfCurrencypxfNumberpxfLogicalpxfMemoBLObpxfBLObpxfFmtMemoBLObpxfOLEpxfGraphicpxfTimepxfTimestamppxfAutoIncpxfBCDpxfBytesβ array of bytes.
and that's the entire menu. every single one accounted for. ate. π₯
β¨ RETURN VALUE β¨
- on success: a pointer to the field π«Ά
- on failure:
NULLπ
that's it. that's the whole contract.
β¨ SEE ALSO β¨
go read those too, they're iconic in their own right π
β¨ AUTHOR β¨
this manual page was written by Uwe Steinmann uwe@steinmann.cx. ty for your service, king π
and that's the whole page, bestie!! this little diva is part of PX_GET_FIELD(3), and if you ever forget her name just yell PX_GET_FIELD(3) into the void and she'll come running. mwah πβ¨π¦
π¦ where this page comes from
- debian bookworm: pxlib-dev 0.6.8-1+b1
- debian trixie: pxlib-dev 0.6.9-1+b1
- ubuntu jammy: pxlib-dev 0.6.8-1
- ubuntu noble: pxlib-dev 0.6.8-1
- ubuntu questing: pxlib-dev 0.6.9-1
- ubuntu resolute: pxlib-dev 0.6.9-1build1
- ubuntu stonking: pxlib-dev 0.6.10-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms