Select text question

craig at craig at
Thu Oct 8 09:30:08 EDT 2020

Not sure about mobile, but does this help?
on openFieldset the keyboardType of me to "numeric"
put "" into meselect text of meend openField
-----Original Message-----
From: "Graham Samuel via use-livecode" <use-livecode at>
Sent: Thursday, October 8, 2020 8:45am
To: "How to use LiveCode" <use-livecode at>
Cc: "Graham Samuel" <livfoss at>
Subject: Select text question

I want a user to key a number in a field in an iOS app. Normally the field will already contain data which the user will be replacing, so I coded this

on openField
 set the keyboardType of me to "numeric"
 select text of me
end openField

What happens is that the selection can be seen taking place briefly (this is in the Simulator) and then reverts to a flashing cursor with the original data still in the field and no selection shown. (The numeric keyboard does open BTW, but I can’t see that as relevant).

What did I do wrong?

use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list