Button_Count - TabDialog
Returns the number of tabs in this object
Type: Property
Access: Read-Only
Data Type: Integer
Parameters: None
Syntax
Property Integer Button_Count
| Access Type | Syntax |
|---|---|
| Read Access: | Get Button_Count to IntegerVariable |
Description
The Button_Count property returns the number of tabs in this object.
Sample
This sample method could be sent from Add_Focus in the (db)TabDialog object activates each tab-page so that controls like the CodeJock grid are available for use.
Procedure DisplayAllTabs
Integer iTabs iTab
Get Button_Count to iTabs
If (iTabs > 0) Begin
Decrement iTabs
For iTab from 1 to iTabs
Send Request_Switch_To_Tab iTab 2
Loop
Send Request_Switch_To_Tab 0 2
End
End_Procedure