Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

GetResourceString Method

NI TestStand™ 4.0 Help
April 2007

NI Part Number:
370052F-01

»View NI TestStand Product Info

Syntax

Engine.GetResourceString ( section, symbol, [defaultString], [found])

Return Value

String

The resource string.

Purpose

Returns a string from the TestStand string resource file for the current language. You specify the string by category and symbol, which are the section and item labels for the string in the string resource file.

Remarks

The string resource files are located in the <TestStand>\Components\NI\Language and <TestStand>\Components\User\Language directories. Typically, you customize the strings in the resource files in the <TestStand>\Components\NI\Language directory by adding a section and item with the same name to the corresponding file in the <TestStand>\Components\User\Language directory.

Use the ResStr function to retrieve a TestStand resource string from within an expression.

Parameters

section As String

[In] Specifies the category or section label.

symbol As String

[In] Specifies the symbol or item label.

defaultString As Variant

[In] [Optional] Pass a default string to return when the string resource file does not contain an entry with the category and symbol that you specify. If you do not specify this parameter and the string resource file does not contain the entry, this function returns the string, "String not found in table."

found As Variant

[Out] [Optional] Returns the Boolean value True if the string is found in the resource file, and False if the string is not found in the resource file.


See Also

ReloadStringResourceFiles


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit