SplitContaining Method
The SplitContaining method returns the Index value of the split containing the specified coordinate pair.
object.SplitContaining(x, y)
Arguments
x and y are singles that define a coordinate pair in twips.
Return Value
An integer corresponding to the index of the split beneath the specified coordinate pair.
Method applies to TDBList and TDBCombo controls.
This value ranges from 0 to Splits.Count - 1.
This method is useful when working with mouse and drag events when you are trying to determine where the user clicked or dropped another control in terms of a control column.
If either argument is outside of the control's data area, this method returns -1.
Note: You must convert the x and y arguments to twips, even if the container's ScaleMode (Visual Basic) setting specifies a different unit of measurement.
See Also