Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Paradox Engine 3.0 for C - /* the setup.c and keymap.c programs must be compiled and run */ http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
/* The SETUP.C and KEYMAP.C programs must be compiled and run */
/* before this example can be executed. */

#include <stdio.h>
#include "pxengine.h"

#define TABLENAME  "table"

FIELDHANDLE fields[256];
char        fldName[26];
FIELDHANDLE compSecIndexHandle;
int         nfields;
int         Qmode,i;

int main(void)
{
  PXCODE pxErr;

  PXInit();

  if((pxErr = PXKeyQuery("table.xg0", fldName, &nfields,&Qmode, fields,
    &compSecIndexHandle)) != PXSUCCESS)
  printf("%s\n", PXErrMsg(pxErr));
  else
  {
    printf("Field name %s\n", fldName);
    printf("Number of fields %d\n", nfields);
    printf("The fields in this index are: ");
    for (i=0; i<3; i++)
      printf(" %d ", fields[i]);
    printf("\nThe handle for this index is: %d\n", compSecIndexHandle);
  }

  PXExit();
  return(pxErr);
}
.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson