To create the Create form, follow these steps:
- We need to make some changes to the ConVMSVehicleServiceTableForm class in order to pass state information between the main form and the create form. Open the class and add the following:
// global variablesConVMSVehicleServiceTable serviceTableCreated;// new methodspublic ConVMSVehicleServiceTable ParmServiceTableCreated( ConVMSVehicleServiceTable _serviceTableCreated = serviceTableCreated){ serviceTableCreated = _serviceTableCreated; return serviceTableCreated;}public ConVMSVehicleServiceTable CurrentRecord(){ return conVMSVehicleServiceTable_ds.cursor();}
- Create a new form, suffixing the detail's form name with Create, for example, ConVMSVehicleServiceTableCreate.
- Drag ...