Web Connection
Path to Data
Gravatar is a globally recognized avatar based on your email address. Path to Data
  Patricio
  All
  Sep 8, 2025 @ 06:50am

It is possible to change where (folder) server access to table data? I need to access Tables/DBF data outside of server's folder structure...

Gravatar is a globally recognized avatar based on your email address. re: Path to Data
  Tore Bleken
  Patricio
  Sep 8, 2025 @ 09:05am

Just add the necessary folder(s) to the active path.

Gravatar is a globally recognized avatar based on your email address. re: Path to Data
  Patricio
  Tore Bleken
  Sep 8, 2025 @ 09:24am

Can be done dinamically? Read it from an INI file or parameter?

Gravatar is a globally recognized avatar based on your email address. re: Path to Data
  Tore Bleken
  Patricio
  Sep 8, 2025 @ 10:28pm

Of course. Just be aware of the search order for files. First VFP checks the Set Default folder, and then it searches the Set Path folders, in the same order as they are listed.
If you are talking about using the same application for different set of data, you use Set Default to switch between the tables. In this case it may not be necessary to change the path settings.

Gravatar is a globally recognized avatar based on your email address. re: Path to Data
  Patricio
  Tore Bleken
  Sep 9, 2025 @ 02:33am

Can be added via setting on INI file? or something like that...

Gravatar is a globally recognized avatar based on your email address. re: Path to Data
  Tore Bleken
  Patricio
  Sep 9, 2025 @ 02:40am

I wrote "of course" as a confirmation. However, it's your job to write the program that reads the INI file. Or you can pass the necessary value(s) as parameter(s).
Note that since you give no details as to what you really want, you can only expect to receive more general answers.

Gravatar is a globally recognized avatar based on your email address. re: Path to Data
  Patricio
  Tore Bleken
  Sep 9, 2025 @ 07:17am

Fair enough... The scenario is to have the ability to share data (tables/dbf) between a desktop app and its web version using WebConnect. As WC uses an App.ini file to read settings, I was thinking about to use it to point out where the tables are (usually same dir as the desktop app) Any thoughts?

Gravatar is a globally recognized avatar based on your email address. re: Path to Data
  Tore Bleken
  Patricio
  Sep 9, 2025 @ 08:27am

Unless you have a huge number of tables, I think you overcomplicate things.
Normally you have the tables in just a few folders. I suggest that you have one setting for the path in a file on the web server, and a different file for the path on the desktop. Whether the file is an ini, a dbf, a prg or another type of file is more or less irrelevant.
You only need to list the folder(s) where the data is stored, so it shouldn't be more than a few entries.

© 1996-2025