Description This function moves the active slice from its current index position in a multi-slice ARN to a new index position in the same ARN.
Syntax idx = ARNShuffleSliceTo( arn, dstIdx )
Parameters idx (Long) Returned index where the active slice was moved. This value should always match the dstIdx argument. After execution, idx is the new active slice of the ARN.
arn As Long Node number of the multi-slice ARN whose active slice is being moved.
dstIdx Index position in the multi-slice ARN where the active slice is being moved to.
Example The example below moves the current active slice of an ARN into index position 0.
Sub Main
Dim msarn As Long msarn = ARNFindName( "Multi-slice ARN 1" )
Dim srcIdx As Long, dstIdx As Long srcIdx = ARNGetSliceCount(msarn)-1 dstIdx = 0 ARNSetActiveSlice( msarn, srcIdx ) dstIdx = ARNShuffleSliceTo( msarn, dstIdx )
Print "Active slice is now " & dstIdx
End Sub
See Also
|