Paradox Community
Search:

 Welcome |  What is Paradox |  Paradox Folk |  Paradox Solutions |
 Interactive Paradox |  Paradox Programming |  Internet/Intranet Development |
 Support Options |  Classified Ads |  Wish List |  Submissions 


Paradox OCX Internet/Intranet Articles  |  Non-OCX Internet/Intranet Articles  


Paradox as a Web Server
It really can work
by Tony McGuire


if (tcServer.   tcursor
qLocate(   locate on indexed field(s)
REQ_POST,   type of request (Post/Get)
Request.URI)   the action to take (Retrieved from the Internet Form)
then    
if (openLibrary(   if the library is open, or can be opened
tcServer.(FID_SVR_LIBRARY)   that is named in the tcserver field # FID_SVR_LIBRARY (constant)
)) then    
dynLibs[tcServer.(FID_SVR_LIBRARY)].   using the value in that tcserver field # to get the dynarray value
handleRequest( tcServer.(FID_SVR_HANDLER), Request, Response )   execute the handlerequest method in that library, and pass it the value of the tcserver field #FID_SVR_HANDLER (constant), as well as the OLEAuto Request & Response
endIf    
endIf    
;// Check the SERVER table to see if this URI is mapped to
;// a library handler routine
;//
if (tcServer.qLocate(REQ_POST, Request.URI)) then
  ;// If it is, dispatch the Request and Response records to the
  ;// appropriate library handler routine
  if (openLibrary( tcServer.(FID_SVR_LIBRARY) )) then
    dynLibs[ tcServer.(FID_SVR_LIBRARY) ].handleRequest(
      tcServer.(FID_SVR_HANDLER), Request, Response )
  endIf
endIf


Discussion of this article


 Feedback |  Paradox Day |  Who Uses Paradox |  I Use Paradox |  Downloads 


 The information provided on this Web site is not in any way sponsored or endorsed by Corel Corporation.
 Paradox is a registered trademark of Corel Corporation.


 Modified: 15 May 2003
 Terms of Use / Legal Disclaimer


 Copyright © 2001- 2003 Paradox Community. All rights reserved. 
 Company and product names are trademarks or registered trademarks of their respective companies. 
 Authors hold the copyrights to their own works. Please contact the author of any article for details.