IsCurrentUserAuthorizedToRunForm method (WinStudio scripts)

Applies To

IWSApplication interface

Definition

Returns a Boolean value indicating whether the current WinStudio user is authorized to run the specified form.

Syntax

Application.IsCurrentUserAuthorizedToRunForm( string )

  Part   Description
string Required. The name of the form.

Remarks

A return value of:

  • TRUE indicates that the user is authorized to run the form.
  • FALSE indicates that the user is not authorized to run the form.

Example

Sub Main()
   Dim OKtoOpen As String
   OKtoOpen = Application.IsCurrentUserAuthorizedToRunForm("LanguageIDs").ToString
   Application.ShowMessage("Authorized to view form? " & OKtoOpen)
End Sub