Subject Re: [IBO] Create Data Base at Runtime ... D7 IBO
Author James N Hitz
Place a TIB_Script (from the iboTools page) on the form or dataform, link it to a TIB_Connection and a TIB_Transaction.

Place the DML code in the IBScript.SQL. At runtime, ask the user for location to store DB file (you could use a standard TDialog or use the inbuilt dialog by setting IB_Connection.LoginPrompt = true).

Execute the Script:

IBSCript.Execute;

You may want to have a look at the IBO Samples. Most of them use this approach. Hope this helps
----- Original Message -----
From: Mike Hickman
To: IBObjects@yahoogroups.com
Sent: Thursday, April 20, 2006 1:07 AM
Subject: [IBO] Create Data Base at Runtime ... D7 IBO


Hi,

My User will have created a folder for storing a new Firebird database.

I can create a script at runtime to create the database, tables etc.

Which, if any, component can be called to execute the script?

The alternative will be to have an empty master database which can be
copied to the new folder.

Advice appreciated.





___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !



------------------------------------------------------------------------------
YAHOO! GROUPS LINKS

a.. Visit your group "IBObjects" on the web.

b.. To unsubscribe from this group, send an email to:
IBObjects-unsubscribe@yahoogroups.com

c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


------------------------------------------------------------------------------




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