Changing the focus between objects in code?

I would like the focus to change from a button to a text field (with active blinking cursor…) after clicking that button. Is that possible? I know there isn’t a Goto comment (as in Filemaker), but maybe there is a way to jump to a Tab index?


Check for AllowFocusRing As Boolean and DesktopWindow — Xojo documentation

thanks! That’s what I was looking for.