Function _retds() Foundation

Returns a character string as a date value to Xbase++.

Syntax
BOOL _retds(XppParamList pList, CHAR *cDate);
Parameters
XppParamList pList
Pointer to the Xbase++ parameter list of the function whose return value is being set.
CHAR *cDate
Pointer to a string which represents a date in the form "YYYYMMDD".
Return

Always returns TRUE.

Description

_retds() is used to return a date value. The string must contain a date in the format "YYYYMMDD",zero padded if needed. All additional characters in the string are ignored. If the string can not be converted into a valid date, the return value is set to a NULL date. Calling this does not exit the actual function, but merely sets the return value. After the call an access to other C-API functions except for _conRelease()is not allowed anymore and the function should return immediately.

To insure correct operation, a return value has always to be set. In Xbase++, NIL should be returned for procedures, which are functions without return values.

Examples
/* 
Returns the date 7/25/1994 
*/ 
#include <xpppar.h> 

retds(<pList>, "19940725"); 

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.