Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.
SalBoolean IsPresObjectAvailable (SalString sPresObject)
The IsPresObjectAvailable method tells if a presentation object is available (granted) to the user.
Name | Description |
---|---|
SalString sPresObject | Name of the Presentation Object. This parameter is case sensitive. |
The return value is TRUE if the presentation object is available, FALSE otherwise.
To find out if a specific window is available in the application (regardless of whether the window is granted), applications should use the Var.Component.IsWindowAvailable method.
If Security.IsPresObjectAvailable( 'dlgEnable' ) Return SalModalDialog( dlgEnable, hWndMDI )bCanHandlePersonal = Var.Security.IsPresObjectAvailable("GUI_HANDLEPRF"); bCanHandleBase = Var.Security.IsPresObjectAvailable("GUI_HANDLEBASEPRF");