i respect correctly this step but i do "doform("frmCustomerMaint")" in command's bar of Menu Maintenance Customer.
Codebook detect this error
Description of error
The following ControlSouce errors where found in frmcustomermaint1: txtname - v_customermaint.cname ____________________ the most common cause of this problem is not having uour bizobj instantiated before your controls. If this is the case, select your bizobj(s) and run 'Send to Back' from the Format menu.
help me Thank Eddy Maue
Step 2: Create the form Open the Class Browser. Open the aForms.vcx file in the project's Libs directory. Click the New Class button, and in the dialog that follows, set the Class Name field to frmCustomerMaint, and then click on the button next to the Based on: field. Select the iBizobjForm class in [codebook]CommoniLibsiForms.vcx. The Store in field should already be set to your local aForms.vcx. Alternatively, you can do this through the Project Manager. Select the aForms class, and click New. Follow the steps listed above. Set the size, caption, etc. for the form. Since this is a basic maintenance form, we can use the standard toolbar for controlling Next, Previous, etc., so set the cToolbarClass property to iNavToolbar. This is the standard navigation toolbar class for Codebook. Open up the Classes tab of the Project Manager. Scroll down to the "iContrls" classlib, and drag instances of the "iTextbox" and "iLabel" classes onto your forms for each of the fields you want to edit. You don't need them for all fields, such as IID and foreign keys, but for anything a user would edit. Arrange them as desired on the form. Tip: If you will be creating lots of forms, go to the ToolsOptions menu, and under the Controls tab, select Visual class libraries. Click the Add button, and select the iContrls classlib. Click on Set as Default, and they will always be available to your app in the Form Controls toolbar by clicking on the icon that looks like 3 books, and selecting the iContrls classlib. Now you can add Codebook controls to your forms as easily as the native VFP controls. Give the textboxes meaningful names, such as "txtName", instead of " Textbox7". This is an important habit to get into, as it makes referencing these controls much clearer. Set their ControlSource properties to the name of the view and field, minus the initial "l". So the Name textbox would have its ControlSource set to v_CustomerMaint.cName. Finally, if you want the Customer form to be available from the main application toolbar, add a button to the maintoolbar class of your local aToolbars.vcx classlib. Set the caption to "Customer", and the cForm property to "frmCustomerMaint".
©2002 Eddy Maue |