RowSet.LastColumnIndex

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aRowSet.LastColumnIndex

New in 2019r2

Supported for all project types and targets.

The index of the last column.