Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Macro Reference > Document Object > Methods

EmEditor Macro Reference: SerialToLogical Method

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - EmEditor Macro Reference - Document Object

SerialToLogical Method

Converts a serial position to the logical coordinates, and retrieves the position in the Point object.

[JavaScript]

point = document.SerialToLogical( nSerialPos );

[VBScript]

point = document.SerialToLogical( nSerialPos )

Parameters

nSerialPos

Specifies the serial position, which is one-based index of the character from the beginning of the entire text.

Examples

[JavaScript]

point = document.SerialToLogical( 10 );

x = point.x;

y = point.y;

[VBScript]

point = document.SerialToLogical( 10 )

x = point.x

y = point.y

Version

Supported on EmEditor Professional Version 17.0 or later.

Copyright © 2003-2021 by Emurasoft, Inc.