Problem loading SIB to dispatcher
Posted: Thu Sep 01, 2011 1:01 pm
I had to add a form to the Sib file, can't be done in the editor.
So generated a sil from existing Sib and added the form manually.
Then exported back to a Sib file. When I try to load the sib file in my program start up an error occurs. "language name shall be included in the Langnames property".
There are several sib files loaded depending on the license therefore the SIB languagues are loaded on the fly.
I use
FSIBManager := TSIBFileManager.Create;
siLangDispatcher1.FileName:=ProgramPath+DefLangFileName;
FSIBManager.LoadAllFromFile(siLangDispatcher1.FileName);
siLangDispatcher1.LangNames:=FSIBManager.siComponents[0].LangNames;
siLangDispatcher1.Language:=FSIBManager.siComponents[0].Language;
If I try with an old Sib file there is no problem.
Appreciate any help
So generated a sil from existing Sib and added the form manually.
Then exported back to a Sib file. When I try to load the sib file in my program start up an error occurs. "language name shall be included in the Langnames property".
There are several sib files loaded depending on the license therefore the SIB languagues are loaded on the fly.
I use
FSIBManager := TSIBFileManager.Create;
siLangDispatcher1.FileName:=ProgramPath+DefLangFileName;
FSIBManager.LoadAllFromFile(siLangDispatcher1.FileName);
siLangDispatcher1.LangNames:=FSIBManager.siComponents[0].LangNames;
siLangDispatcher1.Language:=FSIBManager.siComponents[0].Language;
If I try with an old Sib file there is no problem.
Appreciate any help