SetViewPort Method

Applies To   See Also

Sets the values of the ViewPortLeft and ViewPortTop properties for a form.

Syntax

Object.SetViewPort(nLeft, nTop)

Arguments

nLeft

Specifies the value of the ViewPortLeft property for the form.

nTop

Specifies the value of the ViewPortTop property for the form.

Remarks

The SetViewPort method returns true (.T.) if the ViewPortLeft and ViewPortTop properties are successfully set; otherwise false (.F.) is returned. The SetViewPort method is ignored for forms that do not contain scroll bars.

The unit of measurement for the ViewPortLeft and ViewPortTop properties is determined by the form's ScaleMode property setting – pixels (the default) or foxels.