🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
1 messages
1 total messages Started by Mtronix Tue, 16 Oct 2007 12:57
BDE replacement for ->SetKey and ->GotoKey
#131
Author: Mtronix
Date: Tue, 16 Oct 2007 12:57
25 lines
1605 bytes
Hello,
    I have the following code

bool Table::GoTo (TTable *DataSet, const AnsiString &Field,
                   const AnsiString &Value)
{
DataSet->IndexName = Field;
DataSet->SetKey();
DataSet->FieldByName(Field)->AsString = Value;
if (!DataSet->GotoKey())
  {
  // Record wasn't there
  Debug_Printf (0, "GoTo in module Table: Couldn't find value [%s] in field 
"
                   "[%s]\n", Value.c_str(), Field.c_str());
  return false;
  }
return true;
}

I am now using ADO instead of BDE.  All I should have to change is TTable to 
TADOTable.  However, TADOTable does not contian ->SetKey or ->GotoKey 
memebers.  Does anyone have any idea what I can use to replace this?

Thanks 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads