Major problem with Collections when using SIB files

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
bitberry
Posts: 11
Joined: Sun Jan 05, 2003 1:06 pm
Location: Denmark
Contact:

Major problem with Collections when using SIB files

Post 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
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post 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.
bitberry
Posts: 11
Joined: Sun Jan 05, 2003 1:06 pm
Location: Denmark
Contact:

Post 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.
bitberry
Posts: 11
Joined: Sun Jan 05, 2003 1:06 pm
Location: Denmark
Contact:

Post by bitberry »

After further testing it seems like this fix does *not* work for Items-x+ (treeviews).

Please help.

Brian
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Investigating...
dorin
Posts: 20
Joined: Thu Nov 21, 2002 3:29 pm
Location: House of Technics
Contact:

Post 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]
bitberry
Posts: 11
Joined: Sun Jan 05, 2003 1:06 pm
Location: Denmark
Contact:

Post by bitberry »

I tried again, same result. I have sent the file to support@sicomponents.com

Brian
Post Reply