Word Count

Hi guys,
Self.Title = Str(WordCount) puts the word count in the title bar, but how do I get the count to show in a read-only textfield?

I think that when a TextField is read-only, that just means the end-user cannot change the text displayed. But you should still be able to assign text programmatically to the control, like so:

TextField1.Text = Str(WordCount)

I hope that helps.

Thanks a ton, my mistake before was that I added “Me.” before TextField…

You’re welcome Kadri.

The use of Me and Self can be a bit tricky to get the hang of, if you’re not already familiar with it.

I found this blog post quite helpful a while back, see: Me vs. Self, in case that helps.

Have fun!

Thanks again Scott.

1 Like