Tutorials to .com

Tutorials to .com » Software » Vfp » VFP to achieve in your browser to run the application method

VFP to achieve in your browser to run the application method

Print View , by: iSee ,Total views: 26 ,Word Count: 948 ,Date: Sat, 18 Apr 2009 Time: 10:08 PM

Authors: Wang Shoujin silver

VFP data system using the applications developed, compiled, and installation can be released from the environment to run the operating system, it is merely a running system, we can make use of active documents (Active Documents) of the function of the operating system to achieve a simple manner to the application of the customer interface, HTML-based application transformation, through the activities of the document can be successfully prepared by the application before transplantation to the Web page, and will be passed to the function of vfp browser unit. Personnel following the application of a program running in the browser example on the achievement of specific process:

First, create a new project

NEW named in the project file manager to add a form to the project BD1 set the properties of the form are as follows:

TitleBar = 0 & & Close the form of the title bar
WindowState = 2 & & settings to maximize run-time form approach
ScollBar = 3 & & set when the form is non-full-screen display, you can use the vertical and horizontal scroll bar in the form of Destory Events Event object to add the following code:
clear Events & & to ensure that when the form is turned off, users can run out of applications.
Second, in the form to add data environment and the control object.

The data environment in the form to add a data table as a form of data source, where the increase in our staff is a table.

Environment using the mouse drag the corresponding data field options added to the form, as the editor of the form object, and add a data record for the operation of the class object, the form is set up as follows:

Third, add activities to the project document category

In the establishment of a good user interface applications, you can add activities to the project document type, and its steps are as follows:

Manager of the project and select "category" page, click "New" button and activities to create a document type, set the base class for the activities of documentation, will be stored in a custom class library file, set the results are as follows diagram ( slightly)

After setting the new type of double-click the new class object, open a new window type of the object code for the new type of object set Destory Events event code is as follows:

Set up a new category of object attributes:
ContainerReleaseType = 1 & & user leave events document, VFP will automatically exit.
Fourth, set up mainly to generate new class files

Activities VFP6 documents compiled applications with other applications the same as ordinary VFP. Activities form the document will be prepared for even application, even for a generation after NEW.APP application, the application environment in VFP or run in a browser.

In order to run in a browser documentation activities through the system menu "Tools", select "Run Active Document", in the file name edit box to run the activities of the file name of the document NEW.APP, click the "Run" button , you will be prompted to run the paper want to choose to deal with, here we have to select "the current location in the document to open" option in the browser will be able to run the activities of documentation, the results are as follows plan (abbreviated)

Through the above steps, it can be easily prepared by the realization of VFP program is running in your browser, interested readers may wish to try.

Visual FoxPro Tutorial Articles

Can't Find What You're Looking For?

Rating: Not yet rated


No comments posted.