AddColumn Method (ActiveData)

Class

ActiveData.

Action

Adds a column to the underlying ActiveData object and returns a value that indicates success or failure.

Syntax

AddColumn (defaultValue, columnName)
Variable Description
defaultValue The default value for the new column. Double.
columnName The name of the column. String.

Examples

To add a new column called "Occupation" to the PhoneBookData asset, type the following:
Public Sub Main()

		AddColumnToDataFile( "occupation" )

End Sub

Public Sub AddColumnToDataFile( name As String )
		Dim data As ActiveData = Workbench.LoadActiveData( "PhoneBookData" )
		data.AddColumn( "Occupation", name )
		data.Save()
	End Sub
End Module