Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Import Strings


1 reply to this topic

DSpringer

DSpringer
  • Members
  • 3 posts

Posted 01 August 2001 - 20:48

I am working with Install Shield Pro. What I’d like to do is import a modified string table. I tried the ImportStrings but I can’t get it to work. I am using message boxes to help me debug and the first one is always generated but it craps out when it hits the ImportStrings function. The following is an example of my efforts.

Function Test()
   MsgBox “ImportStrings Start”
   Call ISWiProject.ImportStrings("C:\Temp\test.txt", 9)
   MsgBox “ImportStrings Worked”
   Test = 1
End Function

Regards,

- Dan :)

(Edited by DSpringer at 8:49 pm on Aug. 1, 2001)

(Edited by DSpringer at 9:29 pm on Aug. 1, 2001)


Tom

Tom
  • Members
  • 15 posts

Posted 02 August 2001 - 19:26

Take the ", 9" out.

You're telling it to import the strings to language code '9'  which doesn't exist.  Language  codes are 4 digits, ie 1033 for english (passed as short, not string)

If you use a 3rd parameter, you can specify whether to overwrite (eiOverwrite) or ignore (eiIgnore)  when duplicates are found...default is overwrite.

Finally, you can optionally specify an output file (by using a pathname) for errors...

There's really nowhere a '9' would work...

Tom

You can just use:
call ISWiProject.ImportStrings ("C:\Temp\test.txt")

Alternatively, you can say:
call ISWiProject.ImportStrings ("C:\Temp\test.txt", 1033)