Generic FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 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-2015, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 9.0. This page was not revised from the 8.2 page.
Created 2012.5.30.

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