/*! */ xbDouble xbDbf::GetDoubleField(const char *FieldName) { xbShort fnum; if ((fnum = GetFieldNo(FieldName)) != -1) return GetDoubleField(fnum); else return 0; }
/*! */ xbShort xbDbf::PutDoubleField(const char *FieldName, xbDouble d) { xbShort fnum; if ((fnum = GetFieldNo(FieldName)) != -1) return PutFloatField(fnum, (xbFloat)d); else return 0; }
/*! */ xbShort xbDbf::PutFloatField(const char *FieldName, xbFloat f) { xbShort fnum; if ((fnum = GetFieldNo(FieldName)) != -1) return PutFloatField(fnum, f); else return 0; }
/*! */ xbShort xbDbf::GetLogicalField( const char * FieldName ) { xbShort fnum; if(( fnum = GetFieldNo( FieldName )) != -1 ) return GetLogicalField( fnum ); else return -1; }
const wxString wxExStatusBar::GetStatusText(const wxString& field) const { const int no = GetFieldNo(field); if (no == -1) { // Do not show error, as you might explicitly want to ignore messages. return wxEmptyString; } return wxStatusBar::GetStatusText(no); }
bool wxExStatusBar::SetStatusText(const wxString& text, const wxString& field) { const int no = GetFieldNo(field); if (no == -1) { // Do not show error, as you might explicitly want to ignore messages. return false; } // wxStatusBar checks whether new text differs from current, // and does nothing if the same to avoid flicker. wxStatusBar::SetStatusText(text, no); return true; }
/*! */ char * xbDbf::GetStringField( const char * FieldName ) { return GetStringField(GetFieldNo(FieldName)); }
/*! */ xbShort xbDbf::PutLongField(const char *FieldName, xbLong Val) { return ( PutLongField( GetFieldNo( FieldName ), Val )); }
/*! */ xbLong xbDbf::GetLongField( const char * FieldName ) const { return( GetLongField( GetFieldNo( FieldName ))); }
/*! */ xbShort xbDbf::PutRawField(const char *Name, const char *buf) { return PutRawField(GetFieldNo(Name), buf); }
/*! Returns the value of the field specified by Name. \param Name Name of field. \returns Value of the specified field. */ const char *xbDbf::GetField(const char *Name) const { GetField(GetFieldNo(Name), __buf); trim(__buf); return __buf; }
/*! Get the value of the field specified by Name and place its value in buf. \param Name Name of field. \param buf Buffer to hold field value. Must be large enough to hold the entire field value. Use GetFieldLen() to determine the length of the field, if necessary. \returns One of the following: */ xbShort xbDbf::GetRawField(const char *Name, char *buf) const { return GetRawField(GetFieldNo(Name), buf); }
/*! Get the value of the field referenced by Name and place its value in buf. \param Name Name of field. \param buf Buffer to hold field value. Must be large enough to hold the entire field value. Use GetFieldLen() to determine the length of the field, if necessary. \param RecBufSw \returns One of the following: */ xbShort xbDbf::GetField(const char *Name, char *buf, const xbShort RecBufSw ) const { return GetField(GetFieldNo(Name), buf, RecBufSw); }