Subject | RE: [IBO] Looking for TIB_Import |
---|---|
Author | Norman Dunbar |
Post date | 2002-02-27T10:01:26Z |
This might explain the missing TIB_Import component - I found this at the
weekend because D6 has it, but C++ Builder 4 doesn't and I thought maybe I'd
messed it all up myself. The following is taken from IB_ToolsReg.pas and
clearly excludes TIB_Import is using Delphi 4 and below (or C++ Builder 4
and below).
{$IFDEF IBO_VCL50_OR_GREATER}
IB_Import,
{$ENDIF}
Checking the source code in IB_Import.pas has a comment which states that it
is suitable for Delphi 2/3/4 (and presumably C++ too) but having said that,
it still has a check for VCL40 or greater in it :
{$IFDEF IBO_VCL40_OR_GREATER}
if SectionExists('FIELDLIST') then
{$ENDIF}
However, I've modified the IB_ToolsReg.pas file as follows :
Change this :
{$IFDEF IBO_VCL50_OR_GREATER}
IB_Import,
{$ENDIF}
To this :
IB_Import,
Then in Procedure register, change this :
{$IFDEF IBO_VCL50_OR_GREATER} TIB_Import, {$ENDIF}
To this :
TIB_Import,
In the IDE, Delphi or CPPB, Build the package IBO40TRT then build and
install IBO40TDT and voila, a TIB_Import appears on the tools component
pallette.
Beware, I haven't tried this component out yet, so I haven't sent the source
to Jason for a possible future inclusion in IBO, but if someone out there
has a need to try it out, then let me know how you get on.
Enjoy.
Regards,
Norman
PS. I helps a lot if you save the IB_ToolsReg.pas file in DOS mode and not
in Unix mode (my editor default) because it stops the 'line > 1023
characters at line 1' type error messages :o)
-------------------------------------
Norman Dunbar
Database/Unix administrator
Lynx Financial Systems Ltd.
mailto:Norman.Dunbar@...
Tel: 0113 289 6265
Fax: 0113 289 3146
URL: http://www.Lynx-FS.com
-------------------------------------
This email is intended only for the use of the addressees named above and
may be confidential or legally privileged. If you are not an addressee you
must not read it and must not use any information contained in it, nor copy
it, nor inform any person other than Lynx Financial Systems or the
addressees of its existence or contents. If you have received this email
and are not a named addressee, please delete it and notify the Lynx
Financial Systems IT Department on 0113 2892990.
weekend because D6 has it, but C++ Builder 4 doesn't and I thought maybe I'd
messed it all up myself. The following is taken from IB_ToolsReg.pas and
clearly excludes TIB_Import is using Delphi 4 and below (or C++ Builder 4
and below).
{$IFDEF IBO_VCL50_OR_GREATER}
IB_Import,
{$ENDIF}
Checking the source code in IB_Import.pas has a comment which states that it
is suitable for Delphi 2/3/4 (and presumably C++ too) but having said that,
it still has a check for VCL40 or greater in it :
{$IFDEF IBO_VCL40_OR_GREATER}
if SectionExists('FIELDLIST') then
{$ENDIF}
However, I've modified the IB_ToolsReg.pas file as follows :
Change this :
{$IFDEF IBO_VCL50_OR_GREATER}
IB_Import,
{$ENDIF}
To this :
IB_Import,
Then in Procedure register, change this :
{$IFDEF IBO_VCL50_OR_GREATER} TIB_Import, {$ENDIF}
To this :
TIB_Import,
In the IDE, Delphi or CPPB, Build the package IBO40TRT then build and
install IBO40TDT and voila, a TIB_Import appears on the tools component
pallette.
Beware, I haven't tried this component out yet, so I haven't sent the source
to Jason for a possible future inclusion in IBO, but if someone out there
has a need to try it out, then let me know how you get on.
Enjoy.
Regards,
Norman
PS. I helps a lot if you save the IB_ToolsReg.pas file in DOS mode and not
in Unix mode (my editor default) because it stops the 'line > 1023
characters at line 1' type error messages :o)
-------------------------------------
Norman Dunbar
Database/Unix administrator
Lynx Financial Systems Ltd.
mailto:Norman.Dunbar@...
Tel: 0113 289 6265
Fax: 0113 289 3146
URL: http://www.Lynx-FS.com
-------------------------------------
This email is intended only for the use of the addressees named above and
may be confidential or legally privileged. If you are not an addressee you
must not read it and must not use any information contained in it, nor copy
it, nor inform any person other than Lynx Financial Systems or the
addressees of its existence or contents. If you have received this email
and are not a named addressee, please delete it and notify the Lynx
Financial Systems IT Department on 0113 2892990.