Navigation:  DAO Object Classes > DaoTableDef Class >

DaoTableDef:CreateProperty() Method

Previous pageReturn to chapter overviewNext page

Purpose

Creates a new user-defined Property object

 

Parameters

cName(Optional) name of the new property                Default = Empty string
liType   (Optional) type of the New property                Default = Empty string
uVal   (Optional) Value of the New property                Default = NIL
bDDL   (Optional) is the Property of the Type DDL        Default = FALSE

 If bDDL is True, users can't change or delete this Property object

 unless they have dbSecWriteDef permission

 

Description

You can create a user-defined Property object only in the Properties collection of an object that is persistent.

If you omit one or more of the optional parts when you use CreateProperty, you can use an appropriate assignment statement to set or reset the corresponding property before you append the new object to a collection. After you append the object, you can alter some but not all of its property settings. See the Name, Type, and Value property topics for more details.

If name refers to an object that is already a member of the collection, a run-time error occurs when you use the Append() Method. To remove a user-defined Property object from the collection, use the Delete() Method on the Properties collection. You can't delete built-in properties.

 

Note  

If you omit the DDL argument, it defaults to False (non-DDL). Because no corresponding DDL property is exposed, you must delete and re-create a property object you want to change from DDL to non-DDL or back.

 

Class

DaoTableDef

 

See Also

DaoProperty