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

SUMMARY
   d_cmtype(SET,rectype)
   int SET;
   int *rectype;

ARGUMENTS
   SET         Set type for which the current member record type is to be
               returned.
   rectype     Pointer to an integer variable to contained the returned record
               type.

DESCRIPTION
   This function copies the record type of the current membeer of SET into the
   integer variable pointer to be rectype. It is particularly in determining
   the type of the current member of multiple member sets.

CURRENCY CHANGES
    None

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

   -9    S_NOCM        The current member for the specified set is null.

EXAMPLE
   int rtype;      /* record type */
   long fld;       /* field type */
   char txt[80];   /* comment text */
   ..
   d_cmtype(COMMENTS,&rtype);
   switch(rtype){
    case TEXT30:
           fld = T30_line;
           break;
    case TEXT55:
           fld = T55_line;
           break;
    case TEXT80:
           fld = T80_line;
           break;
   }
   d_csmread(COMMENTS,fld,&txt);

See Also: d_crtype d_cotype

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