Description McDataNodes.Add{*} prior to the BeforeAdd{*} event. The parameters may be changed prior to the command invocation.
Syntax
Private Sub object_BeforeAdd(pmcdatanodesNewParent, eSource, vSource, eStorage, lProcessingOrdinalb1, lProcessingCount, eCancel)
The BeforeAdd Event syntax has these parts:
|
| object | A McDataManager object. | | pmcdatanodesNewParent | A McDataNodes object. | | eSource | A mcDataAddSource enumeration, as described in settings. The Type of Source given. | | vSource | A Variant value. The Source data. | | eStorage | A mcDataNodeStorageMethods enumeration, as described in settings. The storage mode to be used. | | lProcessingOrdinalb1 | A Long value. The ordinal (1 based) number of the current root item being processed in the current mcdatanodes command. | | lProcessingCount | A Long value. The count of root items to be processed in the current mcdatanodes command. | | eCancel | A mcDataCancel enumeration, as described in settings. Fail or bypass (because already implemented) the current entry or all enties of the command. |
Settings The settings for eSource are:
 | mcdataas_Other | 0 |
Used by BeforeAdd to signify datatype of source is not known.
|
 | mcdataas_Object | 1 |
Used by BeforeAdd to signify datatype of source is a COM object.
|
 | mcdataas_File | 2 |
Used by BeforeAdd to signify datatype of source is a file.
|
 | mcdataas_Clipboard | 3 |
Used by BeforeAdd to signify datatype of source is the clipboard.
|
 | mcdataas_DataObject | 4 |
Used by BeforeAdd to signify datatype of source is a data object.
|
 | mcdataas_OLEDocument | 5 |
Used by BeforeAdd to signify datatype of source is a visible OLE Document object.
|
 | mcdataas_StringBuffer | 6 |
Used by BeforeAdd to signify datatype of source is a String Buffer.
|
 | mcdataas_ArrayBuffer | 7 |
Used by BeforeAdd to signify datatype of source is a Array Buffer.
|
The settings for eStorage are:
 | mcdatnsm_NotSpecified | 0 |
No Value. Use default value specified to the database type.
|
 | mcdatnsm_StoreFilepath | 65536 |
Store the filename of a file (file must be already saved)
|
 | mcdatnsm_StoreFileData | 131072 |
Save the data in the database
|
 | mcdatnsm_StoreCopyFileName | 262144 |
Save to a database managed file and store filename in database
|
 | mcdatnsm_All | 458752 |
Not a valid value. Use for bit mask of possible values.
|
The settings for eCancel are:
 | mcdatac_Continue | 0 |
VBA.False; Continue as normal.
|
 | mcdatac_AbortWholeCommand | -1 |
(VBA.True) Will rollback when in a transaction.
|
 | mcdatac_IgnoreCurrentEntry | -2 |
Will skip (not process) the single instance on a multi-instance command (Same as mcdatac_AbortWholeCommand for single instance command)
|
 | mcdatac_AlreadyProcessedAll | -1 |
Will skip all remaining instance without processing but will not rollback.
|
 | mcdatac_AlreadyProcessedCurrentEntry | 0 |
Will skip all current instance without processing (same as skip but signifies handled).
|
|