Width Property [Application, Window]

Width returns or sets the width of the window. Returns a long.

Syntax

object.Width

object. Width = newVal

Parameter

Type

Description

newVal

Long

required, use screen coordinates

Example 1

This example demonstrates how to return the Surfer application window width in pixels.

Debug.Print SurferApp.Width

Example 2

This example demonstrates how to set the width of the Surfer application window to 700 pixels.

SurferApp.Width= 700

Example 3

This script displays all the properties in the Application object.

Example 4

This script displays all the methods and properties in the Window object.

Used by: Application object, Window object