[Pas2js] how to get text content from TTextInputWidget

Michael Van Canneyt michael at freepascal.org
Sat Aug 29 15:06:09 CEST 2020



On Sat, 29 Aug 2020, Mgr. Janusz Chmiel wrote:

> I Am getting error:
> Error: Can't access protected member Text
> when I have declared on1 as string;
> and when I type
> on1:=o1.text;
> o1 is The TTextInputWidget variable.
> So how to get text correctly?

As I said: The Value property contains the text (or value) of the edit. So:

on1:=o1.value;

Michael.


More information about the Pas2js mailing list