CodeCharge Studioobject->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 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 in order to be hidden. This property is available after selecting Edit ... from the context menu of the control during design-time.
global $items;
if ($items->ds->RecordsCount<1)
{
$items->Visible = false;
}
where $items is the name of the form.