SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Major problem with Collections when using SIB files

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
bitberry



Joined: 05 Jan 2003
Posts: 11
Location: Denmark

PostPosted: Tue Jan 07, 2003 9:31 pm    Post subject: Major problem with Collections when using SIB files Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Wed Jan 08, 2003 7:22 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
bitberry



Joined: 05 Jan 2003
Posts: 11
Location: Denmark

PostPosted: Thu Jan 09, 2003 10:34 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
bitberry



Joined: 05 Jan 2003
Posts: 11
Location: Denmark

PostPosted: Thu Jan 09, 2003 10:45 pm    Post subject: Reply with quote

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

Please help.

Brian
Back to top
View user's profile Send private message Visit poster's website
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Fri Jan 10, 2003 8:23 am    Post subject: Reply with quote

Investigating...
Back to top
View user's profile Send private message
dorin



Joined: 21 Nov 2002
Posts: 20
Location: House of Technics

PostPosted: Fri Jan 10, 2003 1:25 pm    Post subject: Reply with quote

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]
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
bitberry



Joined: 05 Jan 2003
Posts: 11
Location: Denmark

PostPosted: Fri Jan 10, 2003 9:26 pm    Post subject: Reply with quote

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

Brian
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group