Locate the dialog's Open property, then assign AddCity. Open as the Open script. Click the Compile button to recompile the AddCity dialog. At this point, you could again test your dialog by clicking the Run button. In this case, however, ArcView GIS will generate an error because it cannot get a VTab from a Dialog Editor document.
Open script assumes that the mexcities.dbf table is the active document.
To adequately test this dialog, you must launch it from the Table interface while mexcities.dbf is active. Create a Button to Launch the Dialog To test your dialog, add a button to the ArcView GIS Table interface that launches the AddCity dialog. Click on the Script icon in the project window to open a new Script Editor document. Type the following line of code in the script window and compile it by clicking the Check Mark button. Double-click anywhere on the toolbar that does not already have a button to bring up the Customize dialog box.