22 lines
419 B
C++
22 lines
419 B
C++
#include "stdafx.h"
|
|
|
|
#include "NewDbfAccessTools.h"
|
|
|
|
namespace NewDbfTool
|
|
{
|
|
void DeleteRecordByTKStruct(const TCHAR *sDb, const TCHAR *sKey, const TCHAR *sValue)
|
|
{
|
|
CodeBase cb;
|
|
XDbfTable *pTable = cb.Open(sDb);
|
|
if (!pTable)
|
|
return;
|
|
CString _V(_T(""));
|
|
for (pTable->MoveFirst(); !pTable->IsEOF(); pTable->MoveNext())
|
|
{
|
|
GET_FIELD(pTable, sKey, _V);
|
|
if (_V == sValue)
|
|
pTable->Delete();
|
|
}
|
|
}
|
|
}
|