Page 1 of 1

Major problem with Collections when using SIB files

Posted: Tue Jan 07, 2003 9:31 pm
by bitberry
Igor,

after converting my SIL files to SIB files, I'm having problems on forms with statusbars and listviews. If statusbars have panels with text or listviews have columns with text, e.g. a ''Panels-0' is not a valid integer value' or a ''Columns-0' is not a valid integer value' is thrown when calling LoadAllFromBinaryFile.

If I embed the call to LoadAllFromBinaryFile in a try/catch, the columns/panels are not translated.

My collections look like this:

TFormBatch.ResultList.Columns-0+.Caption=Filnavn|
TFormBatch.ResultList.Columns-1+.Caption=Funktion|
TFormBatch.ResultList.Columns-2+.Caption=Resultat|
TFormBatch.ResultList.Columns-3+.Caption=Kommentar|
TFormExtract.StatusBar1.Panels-0+.Text=Vælg destinationsmappe|

I'm using v5.2.1 for BCB 5.

Brian

Posted: Wed Jan 08, 2003 7:22 am
by isiticov
Brian,

There is bug in SIL Editor (I suppose) when converting to SIB files. I would suggest you now the following:
1. Open your SIB file in some HEX Editor.
2. Replace ALL strings like Columns-0+.Text to Columns[0].Text and so on for all Collections.
3. Save the file
4. Check if error gone.

The origin of problem is that Collections in SIL and SIB files are stored in different ways.

Hope this helps.

Posted: Thu Jan 09, 2003 10:34 pm
by bitberry
isiticov wrote:Brian,
1. Open your SIB file in some HEX Editor.
2. Replace ALL strings like Columns-0+.Text to Columns[0].Text and so on for all Collections.
3. Save the file
4. Check if error gone.
Yes, that fixes the error. The error is present for Columns, Panels and Items.

Please let me know when a permanent fix is available.

Posted: Thu Jan 09, 2003 10:45 pm
by bitberry
After further testing it seems like this fix does *not* work for Items-x+ (treeviews).

Please help.

Brian

Posted: Fri Jan 10, 2003 8:23 am
by isiticov
Investigating...

Posted: Fri Jan 10, 2003 1:25 pm
by dorin
Brian I think you probably missed a "-X+" treeitem somewhere...
We could bot reproduce the problem. Try to search the whole .sib file from the top to bottom. If it still does not work, send us your sample .sib file so we can test on it.[/b]

Posted: Fri Jan 10, 2003 9:26 pm
by bitberry
I tried again, same result. I have sent the file to support@sicomponents.com

Brian