I recently downloaded a sample app from René's web site. When executed it connects to remote dbfs and allows add/edit/view/browse of tables (DBFs). It is a very convinient solution to provide clients access to one common database from many remote work stations via a fast web connection, and still use the same xbase we know. It uses the ADS client-server add-on which is not exactly inexpensive, but seems to works great nevertheless.
I thought it would make great sense to gear my apps towards using the ADS drivers so that whenever remote access is needed, it will only be a matter of purchasing and installing the ADS server at the customer's server where the dbfs are stored. We must admit that it is becomming increasingly more crucial to have web/enabled or remotely/web accessed apps now days.
In order to have one and only one set of source code to work with the local server as well as with the commercial n users server stuff, I thought of placing a flag on a .ini file that will decide wheather the app is to work with a local or remote server. Something sort of like this:
INI oIni FILE ".\MyApp.ini"
Get xRDD SECTION "RDD" ENTRY "RDD-VERSION" OF oIni DEFAULT "LOCAL"
ENDINI
rddsetdefault( "ADS" )
rddRegister ( "ADS", 1 )
SET FILETYPE to NTX
IF upper( xRDD ) <> "LOCAL"
SET SERVER REMOTE
cADS := " Remote 32 bit -b"
ELSE
cADS := " Local 32 bit -b"
SET SERVER LOCAL
ENDIF
and always link the ads RDDs.
Questions:
1. Will this work?
2. Is there a better way?
3. Exactly what files must be linked?
4. I once read that there is a free ADS 2 user full version available. How can it be obtained?
BTW; Last night I accidentally also came across a web-radio transmission via a posting about radio creswin from Méjico. René was on the air speaking about ADS. It was a very pleasant converstion. Congratulations on the radio program. I'm only sory I was late on it and did not get to listen to the whole transmission. Does any body know the scheduling of this program on the air? I'm looking forward to listening anytime I'm able to.
Best,
Reinaldo Crespo-Bazán