PdcOptions.GetFilePath

From External Bemet Wiki
Revision as of 14:06, 21 May 2012 by Mike (talk | contribs) (Created page with "== Declaration == GetFilePath(Path as pdcFilePath) as String == Description == Returns the specified path == Notes == This option returns the path of a given constant in Pl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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).