GetLastFundDataError (Reserved Word)

image\trumpet2.gif Disclaimer

Returns a numeric error code that identifies the status of the last referenced fundamental data.

GetLastFundDataError

Each numeric code has a descriptive EasyLanguage constant name to help identify and compare the type of error;  these are defined as follows:  

 

Constant Word Value Description
fdrOK 0 No error in last reference to fundamental data.
fdrInvalidField 1 Data name is not recognized.
fdrDataUnavailable 2 No data available for last referenced fundamental field.
fdrTypeMismatch 3 Data type of field didn't match reserved word used to reference value.
fdrFutureReference 4 A negative number is not allowed for the data points parameter.
fdrNoSnapshotHistory 5 Referencing historical data not allowed with snapshot field.
fdrNoMeaningfulValue 6 The value for the field has No Meaningful Figure (NMF).
fdrValueNotAvailable 7 The value for the field is Not Available (NA).

Example

Tests the error status from the previous 'Get' field call and sends a message to the print log indicating that the fundamental data for "ONET" (Net Income) is not available.

Value1 = GetFundData("ONET",1);

if GetLastFundDataError = fdrDataUnavailable then Print("Data Unavailable");

See Also

GetFundData, GetFundDataAsString, GetFundDataAsBoolean, GetFundPostDate