The Method menu
You can use commands on the Method menu when working with code. The last three commands open dialog boxes that can simplify writing methods.
Command |
What it does |
New Method |
Creates dBL skeleton code for a new method in the Source editor: // {Linked Method} Form.OnOpen function Form_OnOpen You can do the same thing by clicking the tool beside an event in the Inspector. |
Delete Method |
Deletes the method that has the cursor in it and all references to the method from the code. |
Verify Method |
Attempts to compile the method, to make sure there are no syntax errors. This also happens when you switch focus from the Source editor to the designer. |
Edit Event |
Displays a dialog box that allows you to select objects in the left pane and, in the right pane, select one of the available events for editing. The selected event is then displayed in the Source editor for editing. |
Link Event |
Displays a dialog box similar to the Edit Events dialog box. You choose a control from the left pane and one of its events in the right pane. When you click OK, the new event is linked to that event. |
Unlink |
Displays a dialog box that allows you to view multiple events linked to a method and to remove any or all of them. When you click OK, the selected link is unlinked from that event. |