Article View: borland.public.interbase.sql
Article #589Re: Trigger
From: Alain
Date: Sat, 13 Oct 2007 12:15
Date: Sat, 13 Oct 2007 12:15
22 lines
1677 bytes
1677 bytes
// store in database incoming messages
Database1->StartTransaction();
Add_message->Prepare();
Add_message->Params->Items[0]->AsString=aSms->Phone;
Add_message->Params->Items[1]->AsDateTime=aSms->DateTime;
Add_message->Params->Items[2]->AsString=aSms->Text;
Add_message->ExecProc();
Database1->Commit();
//---
and then in the Store Procedure AfterInsert
void __fastcall TForm1::Add_messageAfterInsert(TDataSet *DataSet)
{
WinExec("c:\\windows\\system32\\calc.exe",1);
}
//---------------------------------------------------------------------------
Just to show up the calculator !!
it doesn't work
Technical Details
Message-ID:
<4710b6d0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<47107366@newsgroups.borland.com> <47107d2d$1@newsgroups.borland.com> <471082b0@newsgroups.borland.com> <4710ab07$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,6419961b300d2047 X-Google-Attributes: gid114a0e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Alain" <alainbastien@gmail.com> Newsgroups: borland.public.interbase.sql References: <47107366@newsgroups.borland.com> <47107d2d$1@newsgroups.borland.com> <471082b0@newsgroups.borland.com> <4710ab07$1@newsgroups.borland.com> Subject: Re: Trigger Date: Sat, 13 Oct 2007 16:15:14 +0400 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 NNTP-Posting-Host: 41.212.194.186 Message-ID: <4710b6d0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1192277712 41.212.194.186 (13 Oct 2007 05:15:12 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1524