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
Major problem with Collections when using SIB files
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.
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.
Yes, that fixes the error. The error is present for Columns, Panels and Items.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.
Please let me know when a permanent fix is available.