SetColumnPosition method

Changes the position of a Database Column within a Database.

Syntax


C++

HRESULT SetColumnPosition (
   LONG ColumnID,

   LONG Index)

Scripting languages

Object.SetColumnPosition(
   ColumnID as LONG,

   Index as Long)

Parameters


ColumnID

The ID of the Column to move.

Index

An index value, starting with 1, that specifies the new position of the Column in the Database.

Return value


C++

The return code.

Scripting languages

None.

Remarks


It is the eRoom convention to place the PhaseID column of an approval process database in the last column position.  When creating approval processes through SAAPI, remember to put the PhaseID column last so that it looks consistent with approval processes created through the UI.

Home

Applies to

IERUDatabase


See also

Databases