IsViewAvailable

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 IsViewAvailable( SalString sView )

The IsViewAvailable method tells if a view is available (granted) to the user.

Parameters

Name Description
SalString sView Name of view. This parameter is not case sensitive.

Returns

The return value is TRUE if the view is available, FALSE otherwise.

Example

If Security.IsViewAvailable( 'ORDERS' )
   Call DbImmediate( 'select count(*) into :nOrderCount from ' 
                     || c_sDbPrefix || 'ORDERS' )
C# code
Sal.SendClassMessage(Sys.SAM_Create, Sys.wParam, Sys.lParam);
this.bAppsrv_installed = Var.Security.IsViewAvailable("ISO_LANGUAGE");