RadarSoft.RadarCube.Web.MSAS Send comments on this topic.
AddCalculatedColumn(DataTable,String,Type) Method
See Also 
RadarSoft.RadarCube.Web Namespace > TOLAPCube Class > AddCalculatedColumn Method : AddCalculatedColumn(DataTable,String,Type) Method




OriginalTable
Defines the table to put the new field into.
ColumnName
Defines the name of the new field.
ColumnType
Defines the type of the new column.
Adds a new calculated column to a specified table.

Syntax

Visual Basic (Declaration) 
Public Overloads Function AddCalculatedColumn( _
   ByVal OriginalTable As DataTable, _
   ByVal ColumnName As String, _
   ByVal ColumnType As Type _
) As TDataColumn
Visual Basic (Usage)Copy Code
Dim instance As TOLAPCube
Dim OriginalTable As DataTable
Dim ColumnName As String
Dim ColumnType As Type
Dim value As TDataColumn
 
value = instance.AddCalculatedColumn(OriginalTable, ColumnName, ColumnType)
C# 
public TDataColumn AddCalculatedColumn( 
   DataTable OriginalTable,
   string ColumnName,
   Type ColumnType
)
Managed Extensions for C++ 
public: TDataColumn* AddCalculatedColumn( 
   DataTable* OriginalTable,
   string* ColumnName,
   Type* ColumnType
) 
C++/CLI 
public:
TDataColumn^ AddCalculatedColumn( 
   DataTable^ OriginalTable,
   String^ ColumnName,
   Type^ ColumnType
) 

Parameters

OriginalTable
Defines the table to put the new field into.
ColumnName
Defines the name of the new field.
ColumnType
Defines the type of the new column.

Return Value

Returns either a matching column from the specified table or, if there's no match, creates and returns a new one.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2010 Radar-Soft, L.L.C. All Rights Reserved.