---
name: "XmTextFieldGetLastPosition"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmTextFieldGetLastPosition"
---

# XmTextFieldGetLastPosition(3)

A TextField function that accesses the position of the last text character

## NAME

**XmTextFieldGetLastPosition** — A TextField function that accesses the position of the last text character

## SYNOPSIS

```
#include <Xm/TextF.h>
XmTextPosition XmTextFieldGetLastPosition(
Widget widget);
```

## DESCRIPTION

**XmTextFieldGetLastPosition** accesses the position of the last character in the text buffer of the TextField widget.

- *widget*

  Specifies the TextField widget ID

For a complete definition of TextField and its associated resources, see [**XmTextField**(3)](/XmTextField/3.md).

## RETURN

Returns an **XmTextPosition** value that indicates the position of the last character in the text buffer. This is an integer number of characters from the beginning of the buffer. The first character position is 0 (zero). The last character position is equal to the number of characters in the text buffer.

## RELATED

[**XmTextField**(3)](/XmTextField/3.md).
