|
|
The following operators support these data types:
|
= == != [] |
The index operator [ ] (starting with 1) can only be used for read-only access, so the content of a variable of type langstring cannot be changed using the operator. Using the index operator on a variable of type langstring returns a variable of the type string. Use the function setLangString() to change the contents of a variable of the type langString. When a langString variable is assigned to a string variable, then the entry in the current language from the langString is assigned to the string variable. |
Example |
Assume that three languages are supported, s[1]...s[3]. The active language has the index 1 here. The result of the first Debug instruction -- DebugN(-a,-b) in the example then reads ["German" "Hungarian" "English"] ["" "" ""]. |
The assignment of a value to a[1] fails, because the assignment operator only allows read operations.
main() Note The absolute index for the languages in WinCC OA (see file search) depends on the relative index of the project languages. |
|
|
V 3.11 SP1
Copyright ETM professional control GmbH 2013 All Rights Reserved