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

SUMMARY
   d_setoo(TO_SET,FR_SET [,dbn])
   int TO_SET;
   int FR_SET;
   int dbn;

ARGUMENTS
   TO_SET      The set type whose current owner will be assigned from the
               current owner of FR_SET.

   FR_SET      The set type whose current owner  will be assigned as the
               current owner of TO_SET.

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

DESCRIPTION
   This function assigns as current owner of TO_SET the current member of
   FR_SET. The current owner of FR_SET must be a legal owner of TO_SET.
   The current member of TO_SET will become NULL_DBA.

CURRENCY CHANGES
   curr_own[TO_SET] = curr_own[FR_SET];
   curr_mem[TO_SET] = NULL_DBA;

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.
                        occurrence of TO_SET.

   -18    S_INVOWN      The current owner of FR_SET is not legal ownwr of
                        TO_SET.


EXAMPLE
    /* make curr_member of AUTHOR_LIST null */
    d_setoo(AUTHOR_LIST,AUTHOR_LIST);

    /* print list of author names */
    while (d_findnm(AUTHOR_LIST)==S_OKAY)
      {
       d_cread(NAME,name);
       printf("author:%s\n",name);
      }

See Also: d_setmm d_setmr d_setmo d_setom d_setor d_setrm

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