Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- db_VISTA III - d_setkey http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   D_SETKEY

SUMMARY
   d_setkey(FIELD,value[,dbn])
   long FIELD;
   char *value;
   int dbn;

ARGUMENTS

   FIELD     Field type of the key field for which the value is to be stored

   value     Pointer to the value of the field to be stored.

   dbn       (optional) The number of the database containing the record.

DESCRIPTION
   This function must be called for each key field in a record that will
   subsequently be created by a call to d_makenew. This establishes the data
   content of all key fields defined in the record so that the system can
   create those keys when d_makenew is called. Optional and compound key
   fields cannot be processed by d_setkey.

CURRENCY CHANGES
   None.

RETURN CODES

   -5      S_INVKEY        Invalid field type. You either did not pas a field
                           type or you passed a field type which is notin the
                           current record.

   -17     S_NOTKEY        FIELD is not key field.

EXAMPLE
     /* create a new info record */
     d_setkey(ID_CODE,"db022");
     d_makenew(INFO);
     ..

See Also: d_fillnew d_makenew d_keystore

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