function apifunc(parms) declare apifunc in ... return apifunc(parms)VFP searches in API functions before those in set('procedure')
FUNCTION GetLastError set step on DECLARE INTEGER GetLastError IN Win32API RETURN GetLastError() ENDFUNC ? GetLastError() && set step on fires ? GetLastError() && set step DOES NOT fireRETURN GetLastError() would recurse infinitely if the API function was not called first.
********************************************************************* FUNCTION xfcGdipGetMetafileHeaderFromStream(stream, header) ********************************************************************* DECLARE Long GdipGetMetafileHeaderFromStream IN GDIPLUS.DLL AS xfcGdipGetMetafileHeaderFromStream Integer stream, String @header RETURN xfcGdipGetMetafileHeaderFromStream(m.stream, @m.header) ENDFUNC