Home arrow Articles arrow Internet/Intranet arrow Paradox as a Web Server: It really can work
18 May 2012
 
 
Paradox as a Web Server: It really can work Print E-mail
Contributed by Tony McGuire   
23 May 2001
Paradox as a Web Server
It really can work
by Tony McGuire



Right-clicking on the OCX and selecting "Object Explorer" you get the inspector (above, with "methods" tab selected). On the "methods" tab is the "uses" block Also, "const" and "var" and the "openlibrary" method are critical and discussed later. The items in red are not editable; they are "included" for use by the OCX.



In the "Uses" block, a declaration for "handlerequest" appears. Handlerequest is a method that must be in every Paradox library you want to use to store methods that the OCX control will talk with. This threw me for a loop, since I wanted to talk to multiple libraries. In the OnPostRequest() (next page), HandleRequest() is used to pass the function call to the exact library needed. In the <form> action of a page, you specify which function should actually handle any given request. This is taken care of in a "master" table, which contains all of the functions you wish to trap for, then activates the appropriate method in the appropriate library by passing the information to the "handlerequest" method.


Next
< Prev   Next >
 
Top! Top!