PX_PUT_DATA_ALPHA(3)
๐ PX_PUT_DATA_ALPHA(3) ๐
okay so bestie, welcome to the Library Functions Manual, section 3, and today's main character is PX_put_data_alpha. yes the whole page is literally named after it. iconic behavior honestly. ๐
โจ NAME โจ
PX_put_data_alpha โ put a value into an alpha data field ๐
๐ธ SYNOPSIS ๐ธ
#include <paradox.h>
void PX_put_data_alpha(pxdoc_t *pxdoc, char *data, int len, char *value)
๐ฆ DESCRIPTION ๐ฆ
So what this does: it converts a string into a value for a data field, exactly the way it's stored in the database file. fr fr. โจ
Before you do this, you must set the target encoding if you want the string to get recoded. That's the whole point of setting it. If you don't set the encoding, then no cap, the data just gets stored as is โ no glow-up, no transformation, just raw. ๐ญ
You should use this function instead of poking at the record data directly. like, please. use the function. it's right there. ๐ซถ
Now the data situation โ data points to the start of the data field in the record. And how do you find that? You gotta do the math yourself, bestie: sum up all the field lengths before the field you want to operate on, and add that to the base pointer of the record. That's it. That's the vibe check. ๐งฎ๐
โ ๏ธ the way that data has to be calculated by hand is giving "you're on your own for the arithmetic" energy. do not skip this step. do not freehand it. ๐
๐ SEE ALSO ๐
PX_put_data_long(3)PX_put_data_double(3)PX_put_data_short(3)PX_put_data_byte(3)PX_put_data_bytes(3)
like a little friend group of putters. obsessed. ๐
๐ AUTHOR ๐
This manual page was written by Uwe Steinmann uwe@steinmann.cx. thank you for your service king ๐ซก๐
and that's the whole page, bestie!! this is PX_PUT_DATA_ALPHA(3) from the Library Functions Manual, and yes the footer literally just says PX_PUT_DATA_ALPHA(3) again because it loves to remind you who the moment belongs to. periodt. ๐
โจ๐ธ
๐ฆ 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