Subject Questions about TIB_Script
Author firebird@spence.users.panix.com
I can't find anything that really describes how TIB_Script works with Macro
substitution.
I was using the Eval package and thought the issue described below might be
something
broken in that package, so I purchased the Total bundle. I am having other
issues with
installing that, but in the meantime, maybe someone could advise me on
whether I've
got the right idea about using TIB_Script.

I have a statement like this in the script:

CREATE DATABASE <databasename>;

I set the MacroBegin and MacroEnd properties to '<' and '>', and provide an
event handler
for OnMacroSubstitution. When I executed the script, I hit the breakpoint
that I'd set
in the event handler. ATextBlock was 'databasename'. The handler set
ATextResult
to ' "c:\aaa1\test.fdb" '. (' " was actually '", but that's hard to read in
an e-mail.) When I
proceeded from the breakpoint, I got a dialog box CREATE DATABASE
<databasename>.
After dismissing that, I got an EIBO_ISCERROR. When I did ShowDialog, it
claimed a
token error on the string 'CREATE DATABASE <databasename>;', as though the
macro
substitution never happened. But the database got created properly.

Is there something else I'm supposed to do to prevent this?



Michael D. Spence
Mockingbird Data Systems, Inc.



[Non-text portions of this message have been removed]