General information
Title:
Web-enabling a FoxPro 2.6 application with minimal changes
My department is attempting to "web-enable" a FoxPro 2.6 application. Our "web consultant" has designed a framework to do this. His HTML representation of our menus and selection criteria dialog boxes store values in a one record FoxPro table. One of the fields in this table is called status.
This status field will contain a 1 if this is a new request, 2 if the data for the html page is being created and 3 if the FoxPro side is completed.
Our FoxPro program uses an DO WHILE .T. ... ENDDO loop rather that a Foundation READ. Within this loop, we call a function called
wbPoll(). It looks at the one record table. If the status field is 1 it scatters the record changes the status field to 2 and changes our cEvent variable to "GET DATA". This cEvent variable is checked in a DO CASE...ENDCASE structure inside the DO WHILE .T. ... ENDDO loop.
Is this an acceptable way of doing things? Does anyone have any other suggestions?
Thanks,
Dan Rhymes
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only