home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include "pxengine.h"
-
- #define TABLENAME "table"
- char buf[] = "New Alpha String";
-
- int main(void)
- {
- RECORDHANDLE recHandle;
- FIELDHANDLE fldHandle;
- TABLEHANDLE tblHandle;
- int pxErr;
-
- PXInit();
- PXTblOpen(TABLENAME, &tblHandle, 0, 0);
- PXRecBufOpen(tblHandle, &recHandle);
- PXFldHandle(tblHandle,"Alpha Field",&fldHandle);
-
- /* Put string into record */
- if ((pxErr = PXPutAlpha(recHandle, fldHandle, buf))
- != PXSUCCESS)
- printf("%s\n", PXErrMsg(pxErr));
- else
- PXRecUpdate(tblHandle, recHandle);
-
- PXRecBufClose(recHandle);
- PXTblClose(tblHandle);
- PXExit();
- return(pxErr);
- }