Gets the text content of a specific line by line number.
Takes richTextBoxID (Int) and lineNumber (Int).
Returns empty string if -1 (invalid line).
BGI GUI
Parameters & Returns
Parameters
richTextBoxIDInt
lineNumberInt
Returns
String
Quick Summary
Gets the text content of a specific line by line number.
Takes richTextBoxID (Int) and lineNumber (Int).
Returns empty string if -1 (invalid line).
Technical Exegesis...
Retrieves the text content of a specific line from a rich text box by 0-based line number. Searches gizmoMap for the rich text box ID. Sends EM_LINEINDEX with lineNumber to get starting character index, returns empty string if -1 (invalid line). Sends EM_LINELENGTH with character index to get line length, returns empty if zero. Prepares static buffer (65536 bytes) with first WORD set to 65535 (buffer size requirement for EM_GETLINE). Sends EM_GETLINE to retrieve line text, null-terminates result.
Retrieves the text content of a specific line from a rich text box by 0-based line number. Searches gizmoMap for the rich text box ID. Sends EM_LINEINDEX with lineNumber to get starting character index, returns empty string if -1 (invalid line). Sends EM_LINELENGTH with character index to get line length, returns empty if zero. Prepares static buffer (65536 bytes) with first WORD set to 65535 (buffer size requirement for EM_GETLINE). Sends EM_GETLINE to retrieve line text, null-terminates result. Returns line text on success, empty string if invalid line or rich text box not found.
This function extracts a single line by its 0-based index. Line numbers start at 0 (first line). Returns empty string for invalid line numbers. Text does not include newline characters. Formatting is stripped - returns plain text only. Use for line-by-line text processing, syntax analysis, or displaying specific lines. EM_GETLINE requires buffer size in first WORD.