CFront

Hi again! :slight_smile: Please help with subj… I have Attain server 3.10, it CFront and DB from 2.60. On DBL_InsertRec in CODE field I have nothing, in TEXT field all ok. Why? And on DBL_ModifyRec I have nothing in the following code: DBL_HREC hRec = DBL_AllocRec(m_hTable); DBL_BWT(); DBL_LockTable(m_hTable, DBL_LockWait); DBL_AssignField(m_hTable, hRec, 1, DBL_FieldType(m_hTable, 1), (DBL_U8*) (LPCTSTR) m_sShopNumTo, m_sShopNumTo.GetLength() + 1); DBL_AssignField(m_hTable, hRec, 2, DBL_FieldType(m_hTable, 2), (DBL_U8*) (LPCTSTR) m_sShopNumFrom, m_sShopNumFrom.GetLength() + 1); if (DBL_FindRec(m_hTable, hRec, (DBL_U8*) “=”)) { DBL_InitRec(m_hTable, hRec); DBL_AssignField(m_hTable, hRec, 1, DBL_FieldType(m_hTable, 1), “0”, strlen(“0”) + 1); DBL_AssignField(m_hTable, hRec, 2, DBL_FieldType(m_hTable, 2), “0”, strlen(“0”) + 1); DBL_Allow(DBL_Err_RecordNotFound); if (!DBL_ModifyRec(m_hTable, hRec)) { printf(“modify err”); } } DBL_EWT(); DBL_FreeRec(hRec); Thanks.

Becouse CODE field format is: [Sort byte][char][char]…[0] Check Alpha type in CF manual: So for 0 you must write: {1,‘0’,0} for 12 :{2,‘1’,‘2’,0} for AA :{'0xFF,‘A’,‘A’,0}