转换字符串格式后再匹配INI文件内容
This commit is contained in:
parent
431df68fdf
commit
a72acd8e70
|
|
@ -2868,8 +2868,11 @@ int CLogIO::SetTableFieldData(int index,int FieldNo,char *buf,int Rec)
|
|||
int flag=0;
|
||||
if(field[i].Reserved>0&&field[i].Reserved<=m_MenuNumber)
|
||||
{
|
||||
if(/*isalpha(buf[0])||*/(buf[0]&0x80&&buf[1]&0x80)) {
|
||||
float ind=GetReservedIndex(buf,field[i].Reserved);
|
||||
char buf_T[513];
|
||||
QString qsColumn = QString::fromLocal8Bit(buf);
|
||||
strcpy(buf_T, qsColumn.toStdString().c_str());
|
||||
if(/*isalpha(buf_T[0])||*/(buf_T[0]&0x80&&buf_T[1]&0x80)) {
|
||||
float ind=GetReservedIndex(buf_T,field[i].Reserved);
|
||||
if(ind>-1) {
|
||||
SetData(field[FieldNo].RepCode,&Buffer[len],(float *)&ind);
|
||||
flag=1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user