 |
ALPHA-VISION® Functions of Data Object Server: Obj_CondTxt
|
Obj_CondTxt
SUMMARY
Obj_CondTxt - Get Text from Cond. Section
SYNTAX
Obj_CondTxt(PointID,Attribut,Dateiname,Section);
ARGUMENTS
- PointID
-
Name of the Data Object
- Attribut
-
Selection
- Dateiname
-
Name of the file that contains the Section with the text information.
- Section
-
Name of the Section that contains the text information.
RETURN VALUE
According Text-File
DESCRIPTION
Depending on the return value a text information is read out of a Text File
and displayed in the text field.
How the job is used:
- The function is bound to a text field
-
The file-extension of the file where the text is read from doesn’t
matter, but must be defined accordingly.
e.g.: Message.txt or: XYZ.ini
- the file might look alike:
:
:
[Errors]
X1=Text_1 \n line 2
X2=Text_2
X129=Text_129
E1=E_Text_1
E2=E_Text_2
E129=E_Text_129
[Messages]
:
:
- Xn Stays for the language used when creating the functionality.
- En Stays for a language variant defined in MLS(Multible Language Support)
- If the Vision2000.ini file contains the entry: "EnableNewline=1"
in the Section "[Jobs]" the String "\n" is interpreted as a line feed.
- The file must be available in the runtime area !!
EXAMPLES
Obj_CondTxt(ABC123,Status,Message.ini,Errors)
The Data Object "ABC123" is querried for the status.
The according text is extracted out of section "Errors" of the file
"Message" and displayed.
Syntax Notation
- [aaa]
- aaa is optional (zero or one occurences)
- (aaa|bbb)
- aaa exclusive or bbb
- (aaa)*
- aaa may occur indefinitely often or may be omitted
- (aaa)+
- aaa may occur indefinitely often but at least once
- (aaa)m..n
- aaa may occur from m to n times