Q: How can I edit a VBP file as part of my migration process?
A: Use the EditFile command in a GlobalSettings file.
Overview
gmStudio has a preprocessor that allows editing source codes in memory before they are translation. This preprocessor is controlled by Compile/Fix commands. However, the preprocess cannot be used to edit the VBP file since because the VBP is processed before the standard pre-processor runs. In order to edit a VBP file, you must use a Refactor/EditFile command in a GlobalSettings file. The steps for setting this up are shown below.In In this example, the objective is to remove unused files from the translation process so they do not become part of the translation results. This not only results in a cleaner result, but also simplifies requirements gathering for subsequent analysis and translation tuning work since time is not wasted on files that are not important to the project.
Steps for editing a VBP using GlobalSettings
1) Add a GlobalSettings file to your your upgrade project file
...
5) Run the translation script that includes the GlboalSettings <Select GlobalSettings ...> command. gmBasic will edit the VBP prior to compiling it.
...