WinStudio
IWSForm interface
Returns the index number of the currently active form page.
object.GetFormPage( )
Part |
Description |
object | Required. The name of a valid form object. |
The return value is an integer indicating the index number of the currently active form page. The index is zero-based.
TIP: Although it will work with any form, this method works most effectively with forms that have multiple pages, typically "wizard" forms.
'Retrieve and display the index number for the active form page. Sub Main Dim iActiveFormPage As Integer iActiveFormPage = Application.FindForm("formName").GetFormPage() Application.ShowMessage(CStr(iActiveFormPage)) End Sub