The GetValidSystemPassword() function prompts the current user to enter the system password defined when Microsoft Dynamics GP was installed. The value true or false is returned, depending on whether the correct password was supplied.
A boolean. The value true indicates the correct system password was supplied, while false indicates that it was not.
Carefully consider where you place the GetValidSystemPassword() function to control access. For example, when restricting access for a form, place the function in the form pre script. This ensures that the restriction code is run, regardless of how the form is opened.