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_setro http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   D_SETRO

SUMMARY
   d_setro(SET [,dbn])
   int SET;
   int dbn;

ARGUMENTS

   SET         The set type whose current owner will be assigned as current
               record.

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

DESCRIPTION
   This function assigns the current record from the current owner of SET.

CURRENCY CHANGES
   curr_rec = curr_own[SET];

RETURN CODES

   -2     S_INVSET      Invalid set type. Probably passed a record or
                        field type instead of set type.

   -8     S_NOCO        The current owner is null.



EXAMPLE

    /*disconect and delete interect and (possibly) key word */
    d_setom(INFO_TO_KEY,HAS_PUBLISHED);
    while (d_findnm(INFO_TO_KEY) == S_OKAY)
     {
      d_discon(INFO_TO_KEY);
      d_setmr(KEY_TO_INFO);
      d_discon(KEY_TO_INFO);
      d_delete();
      d_members(KEY_TO_INFO,&count);
      if (count == 0L)
         {
          /* delete key word */
          d_setro(KEY_TO_INFO);
          d_delete();
         }
     }

See Also: d_setmm d_setmo d_setmr d_setom d_setoo d_setor

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