Win32LIb v.50c: RichText control and 'cut'
- Posted by Judith Evans <camping at FLASH.NET> Oct 08, 2000
- 365 views
Well what I stated before about cut and RichText is only true if there is only one line in the RichText control. With multiple lines, after 'cut' the getStream pulls everything. getRichText() however, WILL get all the data after the 'cut' portion even if only 1 line of data. But how do I tell getRichText to retrieve the entire contents of the RichText? I tested by this getRichText(RT,{1,10}) where my 'cut' portion was before column 10. Using i=length(RT) gives me the dreaded 'exceeds 300 statements......'. If I pick a number larger than the actual text it also fails. The user doesn't select text so I can't go that route. Even if the user did, I can't get the getRichText option to work with an atom which I understand says to get the highlighted text. I'm doing something wrong, but don't know what. Can anyone supply me a sample of the getRichText with an atom? I tried getRichText(RT,1), getRichText(RT,{1}) and even getRichText(RT,num) and getRichText(RT{num}) but all fail. Thanks, Judith