First commit 16/08/1996
This commit is contained in:
41
Builder/agenda/bdiario.cpp
Normal file
41
Builder/agenda/bdiario.cpp
Normal file
@ -0,0 +1,41 @@
|
||||
//---------------------------------------------------------------------------
|
||||
#include <vcl\vcl.h>
|
||||
#pragma hdrstop
|
||||
|
||||
#include "agenda.h"
|
||||
#include "bdiario.h"
|
||||
#include "diario.h"
|
||||
//---------------------------------------------------------------------------
|
||||
#pragma resource "*.dfm"
|
||||
TForm7 *Form7;
|
||||
//---------------------------------------------------------------------------
|
||||
__fastcall TForm7::TForm7(TComponent* Owner)
|
||||
: TForm(Owner)
|
||||
{
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
void __fastcall TForm7::FormKeyPress(TObject *Sender, char &Key)
|
||||
{
|
||||
if (dia==2 && Key=='+')
|
||||
Table1->Next();
|
||||
if (dia==2 && Key=='-')
|
||||
Table1->Prior();
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
void __fastcall TForm7::FormActivate(TObject *Sender)
|
||||
{
|
||||
if (dia==2)
|
||||
{
|
||||
Table1->First();
|
||||
}
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
void __fastcall TForm7::Edit1KeyPress(TObject *Sender, char &Key)
|
||||
{
|
||||
TLocateOptions SearchOptions;
|
||||
SearchOptions << loPartialKey;
|
||||
if(Key=='\r')
|
||||
if(Table1->Locate("Fecha", Edit1->Text, SearchOptions)==false)
|
||||
ShowMessage("Fecha no encontrada");
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
Reference in New Issue
Block a user