With your Controls Security Setup List by your side, you are ready to set up your application’s forms for Controls Security by filling in several form and control properties. Open each form that will have Controls Security in the Visual FoxPro Form Designer and each form class that will have Controls Security in the Class Designer and do the following:
1. Form Properties: Fill in the following form properties.
· Name: You have probably already entered a value in the form’s Name property, but if you haven’t, enter a unique Name now. The first 12 characters of the Name property are used to identify the form in the security table SVPMSecurityData.DBF.
· cCSAltFormName: If the first 12 characters of a form’s name property are not unique among your application’s forms, enter a unique value that can be used to identify the form in lieu of the form’s Name property. Enter up to 12 characters.
2. cCSControlID Control Property: For each control on the form that will have Controls Security, enter the control’s Control ID into the control’s cCSControlID property. A Control ID is a 1 or 2 character alphanumeric code. Alpha characters must be upper case.
A Control ID must be unique among the other control ID’s for a form, including the Form Toolbar controls and the child grid buttons on one-to-many forms, if you include those controls in Controls Security for the form.
Assign Control Groups to Forms