_RetFloat( ) API Library Routine Example
The following example uses _RetFloat( ) to return the floating point representation of a Visual FoxPro date parameter.
SET LIBRARY TO RETFLOAT
? RETFLOAT({2/16/95}) && returns float representation of date {2/16/95}
#include <pro_ext.h>
FAR Example(ParamBlk FAR *parm)
{
_RetFloat(parm->p[0].val.ev_real, 20, 4);
}
FoxInfo myFoxInfo[] = {
{"RETFLOAT", (FPFI) Example, 1, "D"},
};
FoxTable _FoxTable = {
(FoxTable FAR *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo
};