RC-WinTrans Object Model Help |
XMLTool.CreateXLIFFFile
|
Creates an empty XLIFFFile object with the given name and returns this object.
Syntax: |
CreateXLIFFFile( Filename As String ) As XLIFFFile |
| Return: | Object |
| Parameters: |
Filename Name and path of the new file name.
|
| Example: | Dim File As XliffFile
Dim FileNo As Long
Dim GroupNo As Long
Dim TUNo As Long
Dim PropSuccess As Boolean
Set File = Tools.XMLTool.CreateXLIFFFile("C:\test.xlf")
FileNo = File.AddFileSection("en-us", "database.mdb", "database")
GroupNo = File.AddGroup(FileNo)
TUNo = File.AddTransUnit(GroupNo, "en-us", "Text", "")
PropSuccess = File.AddProperty(TUNo, "resname", "", "IDS_TEXT")
If (PropSuccess) Then
File.Save
End If
|
See also: