FocusSeg method


The FocusSeg method moves the focus to a segment in a composite field. Microsoft Dynamics GP account number fields are composite fields.


field.FocusSeg (index), [setvalue]


field – A composite window field object.

index – An integer specifying the segment you’re moving the focus to.

setvalue The value you can set for the segment gaining focus.


Use the FocusSeg method to move the focus to a composite segment from another field in the window, or from one segment to the next within the same composite.

You can use the setvalue of the FocusSeg method to set the value of a segment gaining focus. Based on whether you’re setting the value from “inside” or “outside” the field, there are two primary ways to set segment values:

Documentation Feedback