
(*
 Delphi Object and Component Reference
 FindField, AsString example
Windows-only:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  //Put the DataSource into Edit mode,
  // otherwise we won't be able to change the data
  DataSource1->Edit();
  // This is the safe way to change 'CustNo' field
  Table1->FindField("CustNo")->AsString = "1234";
  //This is *not* the safe way to change 'CustNo' field
  // Table1->Fields->Fields[0]->AsString = "1234";
}
Cross-platform:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  //Put the DataSource into Edit mode,
  // otherwise we won't be able to change the data
  DataSource1->Edit();
  // This is the safe way to change 'CustNo' field
  ClientDataSet1->FindField("CustNo")->AsString = "1234";
  //This is *not* the safe way to change 'CustNo' field
  // ClientDataSet1->Fields->Fields[0]->AsString = "1234";
} 
