At present, Internet / Intranet technology has become increasingly mature, and the construction enterprise intranet has been more and more.
The company adopted. Intranet is an internet technology to construct corporate network, which can achieve enterprises
Internal information sharing, can also be exchanged with external world communication information, with great flexibility.
Currently, many application system development construction is on intranet / web structure, which makes the client's users
Check the HTML page via the browser query or access the web server-side database. The browser is the user
Off interface, although the web server backend application and browser have no direct interaction, the application is
A complete HTML page has been returned to display, providing an interface in a non-interactive manner.
Microsoft is incorporated into the future Windows operating system version of the web browser interface. in
In Internet Explorer 4.0, web browsers are used for file browsing and display desktop applications.
There is no difference between interface components. The browser is becoming an omnipotent application. It provides roaming
Web, LAN, or even all the features needed by users their own computer and applications.
Visual FoxPro makes organization data, defines database rules, and works such as establishing applications.
Visual FoxPro's integrated development environment not only has powerful object-oriented programming tools
And customer / server capabilities, and support OLE and ACTIVEX. If you have an Internet installed in the system
Explorer, and it is the default browser, with the following method, you can control through Visual FoxPro
The web browser accesses the Web site.
Create a Visual FoxPro form, where the code that starts Internet Explorer is:
OIE = CREATEOBJECT ("InternetExplorer.Application",
The CREATEOBJECT function creates an object from an OLE application. Close Internet Explorer
The code is:
IF Type ('Oie') = "o"
OIE.quit
Release Oie
ENDIF
The main member function of the OIE class is: oie.navigate (String URL) to a contact specified by the URL; OIE.GoHome corresponds to the home page of Internet Explorer; Oie.gosearch and Internet Explorer search correspondence; Oie.goback and Internet Explorer The back of the back; OIE.GOForward corresponds to the advancement of InternetExplorer. The main member variable of the OIE class is: Oie.Top, Oie.Left window left upper corner coordinate; OIE.Height window height; Oie.Width window width; Oie.statusText window status bar display information; oie.statusbar window is status strip; Whether the OIE.fulscreen window is displayed full screen; whether the OIE.Toolbar window has a toolbar; whether the OIE.visible window is visible; the OIE.Menubar window has a menu. By setting these member variables, you can control the window size, location, and a state of Internet Explorer. In this way, we can generate a program that activates and controls Internet Explorer in Visual FoxPro, which can be used as a browser. Implemented in the Visual FoxPro 5.0 and Internet Explorer 4.0 environments.