RC-WinTrans Object Model Help |
TRADOSTranslationMemories.Item
|
Returns the translation memory with the given index.
Syntax: |
Item( Index as Variant ) As TRADOSTranslationMemory |
| Return: | TRADOSGlossary |
| Parameters: |
Index The name of the translation memory or the index number of the collection element. The index can be a numerical expression (a number from 1 to the value of the "Count" property) or a string.
|
| Example: | Dim TRADOSTM As TRADOSTranslationMemory Dim TRADOSTU As TRADOSTranslationUnit Dim i As Integer If (Application.TRADOSTranslationMemories.Count > 0) Then Set TRADOSTM = Application.TRADOSTranslationMemories.Item(1) Call TRADOSTM.Search(Application.ActiveTransUnit.Source) If (TRADOSTM.HitCount > 0) Then Set TRADOSTU = TRADOSTM.GetTranslationUnit() For i = 1 To TRADOSTM.HitCount MsgBox TRADOSTU.Source & ";" & TRADOSTU.Target & ";" & TRADOSTU.Score TRADOSTU.Next Next i End If End If |
See also: