Activate Internet Explorer in Visual Foxpro 5.0

Source: Internet
Author: User
At present, the Internet/Intranet technology has become increasingly mature, and the construction of enterprise-level intranets has become more and more popular.
Adopted by enterprises. Intranet uses Internet technology to construct an enterprise intranet network.
Internal information sharing can also communicate with the external world through the Internet, providing great flexibility.
Currently, many application systems are developed based on the Intranet/web structure, which allows the client users
Query or access the database on the web server through a browser, and browse the HTML page. The browser is similar to the user
The Web server backend application does not directly interact with the browser, but the application
A complete HTML page is displayed, providing a non-interactive interface.

Microsoft is directly incorporating the web browser interface into future Windows OS versions. In
In Internet Explorer 4.0, Web browsers and other
There is no difference between the interface parts. The browser is becoming an ubiquitous application that provides roaming
All functions required by web, lan, and even your own computers and applications.

Visual FoxPro makes it easy to organize data, define Database Rules, and create applications.
Visual FoxPro integrated development environment not only has powerful object-oriented programming tools
And Client/Server capabilities, and supports Ole and ActiveX. If you have installed Internet
Explorer, and it is the default browser. You can use the following method to control it Through Visual FoxPro.
The Web browser accesses the web site.

Create a Visual FoxPro form where the code for starting Internet Explorer is:

OIE = Createobject ("internetexplorer. application "),

The Createobject function creates an object from an ole application. Disable Internet Explorer

The code is:

If type ('Oie ') = "O"

      oie.Quit      Release oie    EndIf

The main member functions of the OIE class are: a contact specified by OIE. navigate (string URL) to the URL;
OIE. Gohome corresponds to the home page of Internet Explorer; OIE. gosearch corresponds to Internet Explorer
OIE. Goback corresponds to the backend of Internet Explorer; OIE. goforward corresponds to Internet
Explorer.

The main member variables of the OIE class are: coordinates in the upper left corner of the OIE. Top, OIE. Left window, and OIE. height window height;
OIE. width window width; OIE. statustext window status bar display information; OIE. statusbar window whether
Status Bar; whether the OIE. fullscreen window is displayed in full screen; whether the OIE. toolbar window has a toolbar;
Whether the OIE. visible window is visible; whether the OIE. menubar window has a menu. By setting these member variables,
You can control the size, position, and status of Internet Explorer windows.

In this way, we can generate a program that activates and controls Internet Explorer in Visual Foxpro,
This program can be used as a browser. It is implemented in Visual Foxpro 5.0 and Internet Explorer 4.0 environments.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.