Macro Reference — Document Object — LogicalToSerial Method (Document Object)

# LogicalToSerial Method (Document Object)

Converts the logical coordinates of a specified position to the one-based serial position.

##

### [JavaScript]

    nSerialPos = document.LogicalToSerial( x, y );

### [VBScript]

    nSerialPos = document.LogicalToSerial( x, y )

## Parameters

x

Specifies the one-based horizontal (character) position.

y

Specifies the one-based vertical (line) position.

## Examples

### [JavaScript]

    n = document.LogicalToSerial( 5, 1 );

### [VBScript]

    n = document.LogicalToSerial( 5, 1 )

## Version

Supported on EmEditor Professional Version 17.0 or later.