Sil Editor problem

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
Dadeur
Posts: 5
Joined: Fri Apr 04, 2003 12:59 pm

Sil Editor problem

Post by Dadeur »

Hello
I've modified a sil file with the editor and after
I've reloaded the file with the expert, Delphi can't
compile the project saying:
RLINK32: Unsupported 16bit resurce in file xxxxx.dfm
If I tray to open the form Delphi says:
Error creating form: Identifier expected on line xxx
on line xxx there is this line of code:
ValuesEx = {50617373776F72640150617373776F72640101}
Has the Editor corrupted my file?
How can I fix the problem?

Please help me
Thanks a lot
gaivans
Posts: 71
Joined: Fri Nov 29, 2002 4:10 pm

Post by gaivans »

Hello,

We will fix this issue in the next version release. Please, modify the unit siComp.pas as follows:

In the
procedure TsiCustomLang.LoadExtendedFromFile(const FileName: Tstring; const CanRewrite: Boolean);

Before the line:
EI.PropertyType := TTypeKind(GetEnumValue(TypeInfo(TTypeKind), S1));

Add the line:
if AnsiPos(delim, S1) <> 0 then Delete(S1, AnsiPos(delim, S1), MaxWord); // 5.2.3

After that, re-build the package and load the translations from SIL file.
Best regards,
Serghei Gaivan
Dadeur
Posts: 5
Joined: Fri Apr 04, 2003 12:59 pm

Post by Dadeur »

Hi gaivans, thanks for your kind reply.
This will surely fix siComp but my actual problem is to fix
the corrupted files because I was in a hurry and I missed
the backup of my project ... :oops:
gaivans
Posts: 71
Joined: Fri Nov 29, 2002 4:10 pm

Post by gaivans »

Hello,

This will help to restore the corrupted files:

1. Open the corrupted .dfm file in a text editor, i.e., in Notepad.exe.
2. Select File|Replace..., and replace:
PropertyType =
with:
PropertyType = tkInteger
3. Press "Replace All".
4. Save the file.

After that the .dfm file could be opened in the IDE.
Best regards,
Serghei Gaivan
Dadeur
Posts: 5
Joined: Fri Apr 04, 2003 12:59 pm

Post by Dadeur »

Yeah ! it works !
I really appreciated your help gaivans.
You saved my life :D
Post Reply