Subject | Re: ABS, External function |
---|---|
Author | Michael Vilhelmsen <Michael.Vilhelmsen@M |
Post date | 2002-12-12T11:05:55Z |
Yes
I do it like this:
try
//Udfører opdatering del 1
if (not (DMMain.trAlmindelig.Active)) then
DMMain.trAlmindelig.StartTransAction;
DMOpdat533.Opdat5.ExecuteScript;
DMMain.trAlmindelig.Commit;
except
ShowMessage('Kunne ikke oprettet ABS funktion ');
DMMain.trAlmindelig.RollBack;
end;
Michael
--- In ib-support@yahoogroups.com, "Martijn Tonies" <m.tonies@u...>
wrote:
I do it like this:
try
//Udfører opdatering del 1
if (not (DMMain.trAlmindelig.Active)) then
DMMain.trAlmindelig.StartTransAction;
DMOpdat533.Opdat5.ExecuteScript;
DMMain.trAlmindelig.Commit;
except
ShowMessage('Kunne ikke oprettet ABS funktion ');
DMMain.trAlmindelig.RollBack;
end;
Michael
--- In ib-support@yahoogroups.com, "Martijn Tonies" <m.tonies@u...>
wrote:
> Hi,
>
> Did you COMMIT in the script?
>
>
> With regards,
>
> Martijn Tonies
> InterBase Workbench - the developer tool for InterBase & Firebird
> Firebird Workbench - the developer tool for Firebird
> Upscene Productions
> http://www.upscene.com
>
> "This is an object-oriented system.
> If we change anything, the users object."
> >
> > I found out that I could declare an external function ABS.
> > I do it like this:
> >
> > DECLARE EXTERNAL FUNCTION abs
> > DOUBLE PRECISION
> > RETURNS DOUBLE PRECISION BY VALUE
> > ENTRY_POINT 'IB_UDF_abs' MODULE_NAME 'ib_udf';
> >
> > If I declare it mnaually in either IB Expert or IBConsole its
> > available.
> > But if I use a TIBScript to do it on runtime, I can't create the
> > function.
> > I completes with no problem, but my function is not there.
> >
> > Am I doing anything wrong ?