PdcDBTable.GetImage

From External Bemet Wiki
Revision as of 09:46, 22 May 2012 by Mike (talk | contribs) (Created page with "== Declaration == GetImage(FieldName as String,FileName as String) as Boolean == Description == Gets an image from the database and stores this on disk, returns true or false...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

GetImage(FieldName as String,FileName as String) as Boolean

Description

Gets an image from the database and stores this on disk, returns true or false wether the process has succeeded

Notes

This method will store the image in the database on disk in the given filename.

Code example

This code example will store the image of calculation 00001 on disk in the given filename.

Dim objTable
dim filename

Set objTable = pdc.Database.OpenTable(pdcConData, "DO_CALC","DO_ORDNR")
if IsValid(objTable) then
   if objTable.Locate("DO_ORDNR", "00001") then
      filename = "C:.jpg"
      objTable.GetImage("DO_IMAGE", filename)
   end if
end if
set objTable = nothing

Availability

Available since September 2008 (from version 3.8)