VistaDB 5






VistaDB.DDA Namespace > IVistaDBTable Interface : CreateDefaultValue Method
The target column
Script expression
Use this default value script in update operations (when value has not been assigned to the column in the update). This is not SQL Server compliant.
Description
CreateDefaultValue Method
Create a default value for a column using an expression.
Syntax
'Declaration
 
Sub CreateDefaultValue( _
   ByVal columnName As System.String, _
   ByVal scriptExpression As System.String, _
   ByVal useInUpdate As System.Boolean, _
   ByVal description As System.String _
) 
'Usage
 
Dim instance As IVistaDBTable
Dim columnName As System.String
Dim scriptExpression As System.String
Dim useInUpdate As System.Boolean
Dim description As System.String
 
instance.CreateDefaultValue(columnName, scriptExpression, useInUpdate, description)
void CreateDefaultValue( 
   System.string columnName,
   System.string scriptExpression,
   System.bool useInUpdate,
   System.string description
)
procedure CreateDefaultValue( 
    columnName: System.String;
    scriptExpression: System.String;
    useInUpdate: System.Boolean;
    description: System.String
); 
function CreateDefaultValue( 
   columnName : System.String,
   scriptExpression : System.String,
   useInUpdate : System.boolean,
   description : System.String
);
void CreateDefaultValue( 
   System.string* columnName,
   System.string* scriptExpression,
   System.bool useInUpdate,
   System.string* description
) 
void CreateDefaultValue( 
   System.String^ columnName,
   System.String^ scriptExpression,
   System.bool useInUpdate,
   System.String^ description
) 

Parameters

columnName
The target column
scriptExpression
Script expression
useInUpdate
Use this default value script in update operations (when value has not been assigned to the column in the update). This is not SQL Server compliant.
description
Description
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also