Subject | RE: [IBO] Questions about TIB_Script |
---|---|
Author | firebird@spence.users.panix.com |
Post date | 2006-07-14T02:48:26Z |
>Behalf Of Jason Wharton
> -----Original Message-----
> From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On
> Sent: Thursday, July 13, 2006 7:40 PMHere is the event, which does get called:
> To: IBObjects@yahoogroups.com
> Subject: RE: [IBO] Questions about TIB_Script
>
>
> Show us the actual event where the macro value is being substituted.
>
> Jason Wharton
procedure TConverterForm.sysCreateScriptMacroSubstitute(Sender: TComponent;
const ATextBlock: string; var ATextResult: string);
begin
ATextResult := '"' + newDB.Text + '"';
end;
Here is the SQL statement from the TIB_Script object:
CREATE DATABASE <<database>>
USER 'SYSDBA' PASSWORD 'masterkey';
<< and >> are set as MacroBegin and MacroEnd.
I tried
CREATE DATABASE "<<database>>"
USER 'SYSDBA' PASSWORD 'masterkey';
so I wouldn't have to provide the quotes, but then the parser didn't
see the macro.
Is there some documentation on how the macro substitution actually works?
I just inferred it from property and event names and 38 years of writing
code
for money, but am not sure if I got it right or not.
Michael D. Spence
Mockingbird Data Systems, Inc.