PdcOptions.GetFilePath
Jump to navigation
Jump to search
Declaration
GetFilePath(Path as pdcFilePath) as String
Description
Returns the specified path
Notes
This option returns the path of a given constant in Plan-de-CAMpagne. The contants are:
pdcApplicationPath : this returns the path of the current Plan-de-CAMpagne evironment.
pdcUserPath : this returns the path of the work directory.
pdcTempPath : this returns the path of the temporary directory of Plan-de-CAMpagne.
Code example
This code example stores a file from the database in the temporary directory of Plan-de-CAMpagne.
Dim objTable
dim filename
Set objTable = pdc.Database.OpenTable(pdcConData, "ATTACH","AT_ORDNR")
if IsValid(objTable) then
if objTable.Locate("AT_ORDNR", "00001") then
filename = pdc.Options.GetFilePath(pdcTempPath) & ".txt"
objTable.GetFile "AT_BIN", filename
end if
end if
set objTable = nothing
Availability
Available since 2001 (from version 2.7).