Subject RE: [IBO] Sample coding - TIB_Import
Author IBO Support List
Also, always take a look inside the source unit's interface section. There you will find all the contents that ends up in the help files. In fact, this is where you get the best help documentation because I generally keep the comments up to date there, but I have not regenerated a new help file in years.
 
Jason


From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf Of John W. (Jack) Cane
Sent: Thursday, October 24, 2013 2:01 PM
To: IBObjects Support
Subject: [IBO] Sample coding - TIB_Import

Would like pointer to available, sample Delphi sources showing implementations of IBO components. Particular current interest is TIB_import. Struggling with the requirements. Getting runtime exceptions due to incomplete property specifications, with no requirements list to refer to.

Here is where I am:

Installed latest build of IBO. Disabled items in component Tool Palette are now OK, thanks.

Some legacy code given to me calls the execute method to start the import process. But the TIB_Import object on my form does not contain the OnExecute event. Instead I created a non-visual object instance, and assigned values to DestTable and InputFile,. 

Getting some strange (to me) behavior on tracing through the code, after building the app: 

IB_Import.pas L 1533-4 :  if ( FDestTable = '' ) and ( FDestProc = '' ) then
      raise EIB_Import.Create(ENoDestTableEntry);
 
This is firing, but the error message is, 'Wrong field count in ascii file, line (1)'. I'm investigating that, but want to make sure this behavior (and below) is to be expected.  

If run without tracing, and 'Break' on error dialog, the debugger is returned to a blank line (1304) in TIB_import.pas.

Pointer to documentation, Help page or sample code would be appreciated.

Best,
jwc
from iMac