guiMemoSetCaretIndex | Multi Theft Auto: Wiki Skip to content

guiMemoSetCaretIndex

Client-side
Server-side
Shared

Pair: guiMemoGetCaretIndex

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function sets the current position of the caret (the text cursor) within the memo.

Syntax

guiMemoSetCaretIndex ( )

Code Examples

client

This example would create a memo and set the caret before the "H" in "Hi".

local memo = guiCreateMemo(100,100,200,100,"Hi",false)
guiMemoSetCaretIndex(memo,0)--sets the caret before H

See Also

GUI Functions