ctrlText

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Operation Flashpoint version 1.5
  Arguments of this scripting command have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.5

Description

Description:
Returns the text of a control of the currently active user dialog. This command can be used on static texts, buttons, edit lines and active texts as well as for images, where it returns the image path. Read Dialog Control for more information about user dialogs and controls.

Syntax

Syntax:
String = ctrlText idc
Parameters:
idc: Number - control ID
Return Value:
String - The text or image path is returned, dependent on the control type.

Alternative Syntax

Syntax:
String = ctrlText controlName
Parameters:
controlName: Control
Return Value:
String - (as above).

Examples

Example 1:
_text = ctrlText 100
Example 2:
_text = ctrlText _control

Additional Information

Multiplayer:
-
See also:
ctrlSetText

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section