Esempio n. 1
0
/*!
*/
xbDouble xbDbf::GetDoubleField(const char *FieldName) {
  xbShort fnum;
  if ((fnum = GetFieldNo(FieldName)) != -1)
    return GetDoubleField(fnum);
  else
    return 0;
}
Esempio n. 2
0
/*!
*/
xbShort xbDbf::PutDoubleField(const char *FieldName, xbDouble d) {
  xbShort fnum;
  if ((fnum = GetFieldNo(FieldName)) != -1)
    return PutFloatField(fnum, (xbFloat)d);
  else
    return 0;
}
Esempio n. 3
0
/*!
*/
xbShort xbDbf::PutFloatField(const char *FieldName, xbFloat f) {
 xbShort fnum;
 if ((fnum = GetFieldNo(FieldName)) != -1)
   return PutFloatField(fnum, f);
 else
   return 0;
}
Esempio n. 4
0
/*!
*/
xbShort xbDbf::GetLogicalField( const char * FieldName )
{
  xbShort fnum;
  if(( fnum = GetFieldNo( FieldName )) != -1 )
    return GetLogicalField( fnum );
  else
    return -1;
}
Esempio n. 5
0
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);
}
Esempio n. 6
0
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;
}
Esempio n. 7
0
/*!
*/
char * xbDbf::GetStringField( const char * FieldName )
{
  return GetStringField(GetFieldNo(FieldName));
}
Esempio n. 8
0
/*!
*/
xbShort xbDbf::PutLongField(const char *FieldName, xbLong Val) {
  return ( PutLongField( GetFieldNo( FieldName ), Val ));
}
Esempio n. 9
0
/*!
*/
xbLong xbDbf::GetLongField( const char * FieldName ) const
{
  return( GetLongField( GetFieldNo( FieldName )));
}
Esempio n. 10
0
/*!
*/
xbShort xbDbf::PutRawField(const char *Name, const char *buf) {
  return PutRawField(GetFieldNo(Name), buf);
}
Esempio n. 11
0
/*! 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;
}
Esempio n. 12
0
/*! 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);
}
Esempio n. 13
0
/*! 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);
}