Description

McDataNodes.AddFile prior to the McDBNode creation.

Syntax

Private Sub object_BeforeAddNodeFile(pnoderefCurrent, sFilePath, eStorage, bCancel)

The BeforeAddNodeFile Event syntax has these parts:

PartDescription
objectA McDataManager object.
pnoderefCurrentA McDataNodeRef object. The 'Current' McDataNodeRef containing the parent to be.
sFilePathA String value. The fully qualified file path of the file being added.
eStorageA mcDataNodeStorageMethods enumeration, as described in settings. The storage mode to be used.
bCancelA Boolean value. Assign to True to disallow this operation.

Settings

The settings for eStorage are:

ConstantValueDescription
 mcdatnsm_NotSpecified0

No Value. Use default value specified to the database type.

 mcdatnsm_StoreFilepath65536

Store the filename of a file (file must be already saved)

 mcdatnsm_StoreFileData131072

Save the data in the database

 mcdatnsm_StoreCopyFileName262144

Save to a database managed file and store filename in database

 mcdatnsm_All458752

Not a valid value. Use for bit mask of possible values.