10.07.2015 Views

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>QRdate -- Query/Reply for dateDescription:Prototype:Inputs:Returns:Notes:Query/Reply for datebool QRdate(char *prompt, DateFieldOrder dfo, bool crok, struct tm *tm);prompt is a zero terminated C string to display as a prompt for the user.crok is set TRUE to accept the default reply with just a carriage-return (enter key)tm is a standard C library tm structure pointer from with fields tm_year, tm_mon, andtm_mday filled in from the scan.Returns TRUE for all but query cancelled (CTRL-C typed).Replies are accepted with:YEARMONTHDAY (specifying enum YYMMDD)MONTHDAYYEAR (specifying enum MMYYDD)DAYMONTHYEAR (specifying enum DDMMYY) may be any single comma, space, dash, period, or slash.YEAR may a full 4 digits or 2 digits assumed between 1970 and 2069MONTH may be 1-12, full text (January, February, ..., December) or three characterabbreviations.typedef enum { YYMMDD // ISO, MDDYY // US, DDMMYY // European} DateFieldOrder;QRdatetime -- Query/Reply for date and timeDescription:Prototype:Inputs:Returns:Notes:Query/Reply for date and timebool QRdatetime(char *prompt, DateFieldOrder dfo, bool crok, struct tm *tm);prompt is a zero terminated C string to display as a prompt for the user.crok is set TRUE to accept the default reply with just a carriage-return (enter key)tm is a standard C library tm structure pointer from with fields tm_year, tm_mon,tm_mday, m_hour, tm_min, and tm_secs filled in from the scan.Returns TRUE for all but query cancelled (CTRL-C typed).Replies are accepted with:YEARMONTHDAY (specifying enum YYMMDD)MONTHDAYYEAR (specifying enum MMYYDD)DAYMONTHYEAR (specifying enum DDMMYY) may be any single comma, space, dash, period, or slash.YEAR may a full 4 digits or 2 digits assumed between 1970 and 2069MONTH may be 1-12, full text (January, February, ..., December) or three characterabbreviations.typedef enum { YYMMDD // ISO, MDDYY // US, DDMMYY // European} DateFieldOrder;PERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.42 of 84<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>7/19/2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!