Patch level : 10.0
Files correlati : ve0.exe Ricompilazione Demo : [ ] Commento : 0000988: esposizione file excell Esportando la ricerca dei documenti di vendita l'intestazione va a capo e risulta intestata male. git-svn-id: svn://10.65.10.50/trunk@17665 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
54e5178ec9
commit
cee0637ed0
@ -4339,10 +4339,7 @@ TRecfield::operator int() const
|
|||||||
if (_sub_field.empty())
|
if (_sub_field.empty())
|
||||||
{
|
{
|
||||||
if (_type == _intfld || _type == _intzerofld || _type == _longfld || _type == _longzerofld)
|
if (_type == _intfld || _type == _intzerofld || _type == _longfld || _type == _longzerofld)
|
||||||
{
|
|
||||||
tmp.strncpy(_p, _len);
|
tmp.strncpy(_p, _len);
|
||||||
tmp.cut(_len);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
__getfieldbuff( _len, _type, _p, tmp, __file_is_crypted(_rec->num()));
|
__getfieldbuff( _len, _type, _p, tmp, __file_is_crypted(_rec->num()));
|
||||||
}
|
}
|
||||||
@ -4359,10 +4356,7 @@ TRecfield::operator long() const
|
|||||||
if (_sub_field.empty())
|
if (_sub_field.empty())
|
||||||
{
|
{
|
||||||
if (_type == _longfld || _type == _longzerofld || _type == _intfld || _type == _intzerofld)
|
if (_type == _longfld || _type == _longzerofld || _type == _intfld || _type == _intzerofld)
|
||||||
{
|
|
||||||
tmp.strncpy(_p, _len);
|
tmp.strncpy(_p, _len);
|
||||||
tmp.cut(_len);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
__getfieldbuff( _len, _type, _p, tmp, __file_is_crypted(_rec->num()));
|
__getfieldbuff( _len, _type, _p, tmp, __file_is_crypted(_rec->num()));
|
||||||
}
|
}
|
||||||
@ -4380,10 +4374,7 @@ TRecfield::operator const real() const
|
|||||||
if (_sub_field.empty())
|
if (_sub_field.empty())
|
||||||
{
|
{
|
||||||
if (_type == _realfld)
|
if (_type == _realfld)
|
||||||
{
|
|
||||||
tmp.strncpy(_p, _len);
|
tmp.strncpy(_p, _len);
|
||||||
tmp.cut(_len) = '\0';
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
__getfieldbuff( _len, _type, _p, tmp, __file_is_crypted(_rec->num()));
|
__getfieldbuff( _len, _type, _p, tmp, __file_is_crypted(_rec->num()));
|
||||||
}
|
}
|
||||||
@ -4403,7 +4394,6 @@ TRecfield::operator TDate() const
|
|||||||
if (_type == _datefld)
|
if (_type == _datefld)
|
||||||
{
|
{
|
||||||
tmp.strncpy(_p, 8);
|
tmp.strncpy(_p, 8);
|
||||||
tmp[8] = '\0';
|
|
||||||
return TDate(atol(tmp));
|
return TDate(atol(tmp));
|
||||||
}
|
}
|
||||||
__getfieldbuff(_len, _type, _p, tmp, __file_is_crypted(_rec->num()));
|
__getfieldbuff(_len, _type, _p, tmp, __file_is_crypted(_rec->num()));
|
||||||
@ -4423,7 +4413,6 @@ TRecfield::operator const char*() const
|
|||||||
{
|
{
|
||||||
if (_type == _memofld)
|
if (_type == _memofld)
|
||||||
return _rec->get(_name);
|
return _rec->get(_name);
|
||||||
else
|
|
||||||
__getfieldbuff(_len, _type, _p, tmp, __file_is_crypted(_rec->num()));
|
__getfieldbuff(_len, _type, _p, tmp, __file_is_crypted(_rec->num()));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1359,7 +1359,11 @@ bool TSheet::export_handler(TMask_field& f, KEY k)
|
|||||||
for (columns = 0; ; columns++)
|
for (columns = 0; ; columns++)
|
||||||
{
|
{
|
||||||
if (s._sheet->head(columns, str))
|
if (s._sheet->head(columns, str))
|
||||||
|
{
|
||||||
|
if (str.replace('\n', ' ') > 0)
|
||||||
|
str.strip_double_spaces();
|
||||||
tab.add(str);
|
tab.add(str);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1542,7 +1546,7 @@ void TCursor_sheet::get_row(long row, TToken_string& l)
|
|||||||
const int last = _fields.last();
|
const int last = _fields.last();
|
||||||
for (int i = 0; i <= last; i++)
|
for (int i = 0; i <= last; i++)
|
||||||
{
|
{
|
||||||
const TRecfield* rf = (TRecfield*)_fields.objptr(i);
|
const TRecfield* rf = (const TRecfield*)_fields.objptr(i);
|
||||||
const char* s = rf ? (const char*)*rf : "";
|
const char* s = rf ? (const char*)*rf : "";
|
||||||
l.add(s);
|
l.add(s);
|
||||||
}
|
}
|
||||||
|
@ -860,7 +860,7 @@ TString& TString::picture(
|
|||||||
int TString::strncpy(const char* s, int n)
|
int TString::strncpy(const char* s, int n)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
if (s && *s)
|
if (s && *s && n>0)
|
||||||
{
|
{
|
||||||
if (n > size())
|
if (n > size())
|
||||||
resize(n, false);
|
resize(n, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user