PdcTerminal.Process: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == Process as Boolean == Description == Changes the stock for the supplied material number. == Notes == This function processes the lines of the terminaltable..."
 
Line 24: Line 24:
   if IsValid(objTerminal) then
   if IsValid(objTerminal) then
     if not objTerminal.Process then
     if not objTerminal.Process then
  msgbox "Error while processing the Terminal, check TR_LOG for more information."
      msgbox "Error while processing the Terminal, check TR_LOG for more information."
end if
    end if
   end if
   end if
   set objTerminal = nothing
   set objTerminal = nothing

Revision as of 15:35, 24 April 2012

Declaration

Process as Boolean

Description

Changes the stock for the supplied material number.

Notes

This function processes the lines of the terminaltable for book off or stock changes. The terminaltable can be filled with a script or with a handterminal. The field TR_MODE contains the kind of stock change. 1: Material on an existing calculation 2: Stock (and location) change of a material (relatively) 3: Stock (and location) change of a material (absolutely) 4: Location change of a material 5: Book time on a calculation 6: Book materials on a new calculation

Code example

This code processes the terminaltable.

dim objTerminal

  set objTerminal = pdc.Terminal
  if IsValid(objTerminal) then
    if not objTerminal.Process then
      msgbox "Error while processing the Terminal, check TR_LOG for more information."
    end if
  end if
  set objTerminal = nothing

Availability

Available since version 4.2 onwards.