object->Visible [= value]
Specifies whether the control is visible. Setting this field to false will prevent the object from being displayed.
Note: Property is tested before calling Before Show Event. In order for the property change to be taken into consideration it should be set earlier. For instance in parent component's Before Show Event.
Note: Most of the controls need Extended HTML property checked, which allows them to be hidden. This property is available after selecting Edit ... from the context menu of the control during design-time.
The following example shows how to hide a form if there are no records retrieved from the database.
global $items; if ($items->DataSource->RecordsCount<1) { $items->Visible = false; }where $items is the name of the form.