craigachan
Registered User.
- Local time
- Today, 12:25
- Joined
- Nov 9, 2007
- Messages
- 285
I need help figuring this one out.
I have a memo field that shows about 700 characters on my form but can old a lot of text sometimes. The memo field is populated with text that comes from stock phrases from a listbox click. When I open the form, or add text by the stock phrases from the listbox, I want to see the last 5-6 lines or the last 300-400 characters. This is okay as long as the field holds less than 700 characters.
The problem that I have is when the memo field has greater than 800 characters. I want to be able to see not only the phrases that I'm adding, but also the 4-5 lines above. I've toyed around with SelStart and SelLength, but just can't seem to get the code right. I can put the cursor at the end of the text, but sometimes the box scrolls so that only the last line of text is visible until I scroll it up. Basically, I want to add text and see the text that I'm adding by controlling how much text is showing in the memo field, especially when there is > than 700 characters already in the memo field.
Any Ideas would be appreciated.
I have a memo field that shows about 700 characters on my form but can old a lot of text sometimes. The memo field is populated with text that comes from stock phrases from a listbox click. When I open the form, or add text by the stock phrases from the listbox, I want to see the last 5-6 lines or the last 300-400 characters. This is okay as long as the field holds less than 700 characters.
The problem that I have is when the memo field has greater than 800 characters. I want to be able to see not only the phrases that I'm adding, but also the 4-5 lines above. I've toyed around with SelStart and SelLength, but just can't seem to get the code right. I can put the cursor at the end of the text, but sometimes the box scrolls so that only the last line of text is visible until I scroll it up. Basically, I want to add text and see the text that I'm adding by controlling how much text is showing in the memo field, especially when there is > than 700 characters already in the memo field.
Any Ideas would be appreciated.