Top Property [Application, Window]

Top returns or sets the coordinate in screen coordinates for the top edge of the window. Returns a long.

Syntax

object.Top

object. Top = newVal

Parameter

Type

Description

newVal

Long

required, use screen coordinates

Example 1

This example demonstrates how to return the distance between the top of the application window and the top of the desktop window in pixels.

Debug.Print SurferApp.Top

Example 2

This script displays all the properties in the Application object.

Example 3

This example demonstrates how to position the top of the application window 100 pixels from the top of the desktop window.

Surfer.Top = 100

Example 4

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

Used by: Application object, Window object