PropertyByPosition Property Example
Dim spmMgr As SharedPropertyGroupManager Dim spmGroup As SharedPropertyGroup Dim spmPropNextNumber As SharedProperty Dim iNextValue As Integer ' Get the SharedPropertyGroupManager, ' SharedPropertyGroup, and SharedProperty. Set spmMgr = CreateObject _ ("MTxSpm.SharedPropertyGroupManager.1") Set spmGroup = spmMgr.Group("Counter") Set spmPropNextNumber = spmGroup.PropertyByPosition(0) ' Get the next number and increment it. iNextValue = spmPropNextNumber.Value spmPropNextNumber.Value = _ spmPropNextNumber.Value + 1