Mike
FWIW here's what I do, hoping it may help:
I keep my "current workspace folder" in a table, in the app. folder, and
a public var "gcWADPath". There are several folders below this folder,
and I keep my maps in \MAPDATA. You could equally have the user type in
the folder, or get it from somewhere else. Whatever, it gets stored in
the var.
The code below can explain the rest
Sub OPEN_MAPS
' ___________
Dim lcAppPath, lcMapsPath as string
lcAppPath = ApplicationDirectory$()
Register Table lcAppPath + "MapsPath.dbf" TYPE DBF Charset
"WindowsLatin1"
Into lcAppPath + "MapsPath.TAB" ' Holds Path to user-defined
' Working Area
Path (Root)
Open Table lcAppPath + "MapsPath.TAB" Interactive
gcWADPath = MapsPath.WadPath ' Path to Work Area
lcMapsPath = gcWADPath + "MAPDATA\" ' Path to maps
Open Table lcMapsPath + "UK_NUTS2" As UK_NUTS2
Open Table lcMapsPath + "built_r" As built_r Interactive
Open Table lcMapsPath + "Streets" As Streets Interactive
....
End Sub
HTH
Terry McDonnell
-----Original Message-----
Dear list,
Can anyone tell me if there is a routine available for changing
workspaces
so that the file paths point to a new location. I have a lot of
workspces
that require changing so that they access tables in new locations.
I guess it's going to be a simple find and replace routine in which
filepaths can be entered.
If anyone could point mne in the right direction I'd be grateful.
Thanks,
Dave King
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12510