📄 vfoxpro.txt
字号:
Notes to Generate Visual FoxPro Code
The purpose of this paper is to describe how to generate Visual FoxPro code from class diagrams, state diagrams, and object interaction diagrams. These scripts are "getting started" scripts that must be updated for your development environment.
These scripts are "getting started" scripts that must be updated for your development environment.
1. Generating Visual FoxPro Code from a Class Diagram
*******************************Class Diagram************************************************
Class Diagram: vfoxpro.omt
Script Files: vfoxpro.sct
The steps to generate Visual FoxPro code and to compile the generated files are as follows:
>> Launch With Class from Windows
>> Open vfoxpro.omt
>> Select "Utilities - Generate Class Code per File"
>> Enter the custom file extension, e.g. pgr
>> Select vfoxpro.sct to generate the custom classes
>> Select "File - Edit File" to examine the generated files, e.g. counter.pgr
>> Launch your Visual FoxPro environment and compile
Notes for generating Visual FoxPro:
- Enter Custom, Form, or other literal into -CLASS_USER1
- In the operation specification select __Procedure if the
operation is a procedure. Do not check if the operation is a function.
2. Generating Visual FoxPro Code from a State Diagram
************************************State Diagram*******************************************
State Diagrams: del1stat.omt and del2stat.omt - Must update for Visual FoxPro
Script Files: delstat1.sct and delstat2.sct - Must update for Visual FoxPro
The following are the general steps to test out the Visual FoxPro code generation scripts:
1. Create a directory for the state .omt files, script files, and Visual FoxPro files, e.g. WCSTATE.
2. Copy the appropriate files into each directory, e.g. copy st*.*.
3. In With Class open a state diagram, e.g. DEL1STAT.OMT.
4. Select Utilities - Generate State Code/Report to generate a text report. Enter a report file name,
e.g. RPTSTATE.TXT. Select a state report script, e.g. RPTSTATE.SCT, DDSTATE.SCT, or TABSTATE.SCT.
After report generation, select File - Edit File to examine the generated report.
5. Select Utilities - Generate State Code/Report to generate Visual FoxPro code.
6. Enter the file name, e.g. CONTROLL.PGR
7. In the Visual FoxPro environment, compile and run the program.
8. Go back to With Class and update the state diagram with new states, events, conditions,
and actions and repeat the entire process.
3. Generating Visual FoxPro Code from an Object Interaction Diagram
*******************************************Object Interaction Diagram*******************************
Object Interaction Diagram: carobj.omt
Script Files: tabobmsg.sct
The steps to generate Visual FoxPro messages to cut and paste into your Visual FoxPro code:
1. Open the object interaction diagram, e.g. carobj.omt
2. Select Utilities - Generate Object Code/Report and select tabobmsg.omt
3. Enter the report file name, e.g. tabobmsg.txt
4. Cut each Visual FoxPro message and paste it into your class code.
4. Comments and suggestions are solicited. Richard Felsinger, RCF Associates 960 Scottland Dr, Mt Pleasant, SC 29464 71162.755@compuserve.com 803-881-3648
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -