To get highest performances as possible in time response from ocxServer,
instead of using a qlocate on a TCursor variable (pointing a the
HTMLtemplates table used to builf HTML response file as we see in the
Hercules webServer example from installation CD of Paradox 8) I load all the
table content to a global Dynamic Array (DynArray[] String) at DoStartUp
method as a "cache memory" and in other methods I call the DynArray String
instead of TCursor as handling request functions.
What do you think about that ?
Pierre
Depends on how much info is in that table/dynarray. Only issue I can see is
memory/resource, but I doubt you are using enough to worry greatly about.
I took to placing some of the template stuff in the PROC section, rather
than use the templates. I found too many situations where I wanted a slight
modification in the middle, which meant it didn't qualify as a template any
longer.
Could have made it a method, I suppose, but I just found it handy to have
all template stuff (not in the templates.db) in one window.
--
--
Paradox Support http://www.thedbcommunity.com/support/
Tony McGuire
_____________