Returns the project file with the given language loaded as target language. The numbers of the translation units corresponding to the translation units with the numbers given in the InArray are returned in the OutArray for the returned project file.

Syntax:

GetCorrespondingTransUnits( LanguageCode As String, InArray As Variant, OutArray As Variant ) As ProjectFile
Parameters: LanguageCode Language code of the target language to be loaded.
InArray Array with translation unit numbers that are searched in the project file with the given language code as target language.
OutArray Array returned with translation unit numbers corresponding to the numbers in the InArray.

Example:
Dim InAry(0) As Variant
Dim OutAry() As Variant
Dim ProjFile As ProjectFile
Dim FrenchProjFile As ProjectFile
Dim FrenchTU As TransUnit
    
Set ProjFile = ActiveProjectFile
InAry(0) = 57
    
Set FrenchProjFile = ProjFile.GetCorrespondingTransUnits("fr", InAry, OutAry)
Set FrenchTU = FrenchProjFile.GetTransUnit(OutAry(0))
Remarks: The project file has to be up-to-date for the given language.

The InArray and OutAry have to be array of type Variant. In addition to that the OutArray has to be an empty dynamic array.

See also:

Class ProjectFile


Last Updated: 07/29/05