Subject RE: [IBO] Script component does not accept some commands
Author Helen Borrie
At 02:52 p.m. 23/08/2015, 'IBO Support List' supportlist@... [IBObjects] wrote:


>I do support a CONNECT DATABASE statement.
>Please show me the statement that isn't working.

I'm guessing that it is a quoted string problem, i.e., apostrophes around the database, user and password parameters are either omitted or Florian has forgotten to double them to make Delphi pass them as literals. If so, QuotedString() might be useful here.

- Helen


>
>Jason Wharton
><http://www.ibobjects.com>www.ibobjects.com
>
>
>
>----------
>From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]
>Sent: Saturday, August 22, 2015 12:08 PM
>To: IBObjects@yahoogroups.com
>Subject: [IBO] Script component does not accept some commands
>
>Hi,
>
>I am using the script component to update the database structure, this has worked in the past w/o problems. What I did was creating the script in IBExpert, adapt it some and let it execute by the IBO script component.
>
>Now for the first time, the script needs to do a reconnect in the middle of the script, so instead of using an existing connection it needs an initial connect to begin with.
>
>That's where I get an error, IBO complains that the connect syntax is not valid.
>
>My question now is:
>If I have a working script from IBExpert, should this work as well with a script component.
>
>Florian
>
>
>
>
>