---
name: "PX_update_record"
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_update_record"
---

# PX\_update\_record(3)

Updates an exiting record in the Paradox file

## NAME

PX\_update\_record — Updates an exiting record in the Paradox file

## SYNOPSIS

\#include \<paradox.h\>

int PX\_update\_record(pxdoc\_t \*pxdoc, pxval\_t \*\*data, int recpos)

## DESCRIPTION

Overwrites a record in the database with the data in the array  **dataptr**. The record must be specified by its record  number passed as parameter **recpos**.  The first record has number 0.

The memory for **dataptr** can be freed after  **PX\_update\_record** has been called.

Check the documentation of **[PX\_insert\_record(3)](/PX_insert_record/3.md)** 		  for more information on how to build up the record data

## RETURN VALUE

Returns 0 on success or -1 on failure.

## SEE ALSO

[PX\_retrieve\_record(3)](/PX_retrieve_record/3.md), [PX\_delete\_record(3)](/PX_delete_record/3.md), [PX\_insert\_record(3)](/PX_insert_record/3.md)

## AUTHOR

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