Generic FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
Unrevised from 8.1 to 8.2.
8.1 version

char-from-line-number

Arguments: stream line-number

Returns an integer indicating the character index of the first character of the line-number'th line of text. line-number should be a non-negative integer, with 0 indicating the first line of text. stream can be a multi-line-editable-text control, or a text-edit-pane.

The character index (the returned value) pertains to the string that is in the control, which may differ from a lisp string that was placed into the control programmatically by calling set-text. In particular, the Windows multi-line text-editing control that is currently used by Common Graphics always contains a carriage return / linefeed pair to separate lines of text, where a lisp string has a single newline character. Text is converted automatically when it is added to or copied from the control.

See also line-number-from-char.


Copyright (c) 1998-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.1 page.
Created 2010.1.21.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
Unrevised from 8.1 to 8.2.
8.1 version