Has Caption Property

LabVIEW 2018 Help

Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)

LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

Short Name: HasCaption

Requires: VI Scripting

Class: Control Properties

To Use: Create a property.

Returns TRUE if the control has a caption.

A control has a caption after you complete one of the following actions:

  • Display the caption by right-clicking the control and selecting Visible»Caption from the shortcut menu.
  • Programmatically get or set the caption text by using the Text property of the control.
Note  LabVIEW continues to store the caption for the control even if you hide the caption or use the text editor tool to delete the text of the caption. This behavior enables LabVIEW to display the caption if you choose to make it visible again. Therefore, this property continues to return TRUE for hidden captions.


The following table lists the characteristics of this property.

Data type
PermissionsRead Only
Available in Run-Time EngineYes
Available in Real-Time Operating SystemYes
Settable when the VI is runningNo
Loads the front panel into memoryNo
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access allowedYes


Not Helpful