Oh, sorry I mislead you there. It should be ALINES() function, not ALEN function. Was just thinking off the top of my head and mentioned the wrong function.
MEMLINES might be even better, I haven't tried it, just trying to point you in the right direction...
I assume you mean the user to "know where the page is" in the Memo field.
I'm not aware of a way to "signal" it in the memo field, but what you could do is keep a running check on the editbox, and update an external visual. Something like "Lines Remaining". If can be a lable that starts at 24, and then reduces each time a line is completed. (Because it's not specifically about length, it's about length and CR/LF (or soft paragraph). So a line of text may be 80 characters long, but if at 20 characters into the line, there Enter key is pressed, then that will mark a fully used line as well.
You'll have to tinker with it.
Create a label above your edit box, name it lblEditLength
Then in the edit boxes keypress event, check to see how many lines are used. Then update with something like:
ThisForm.lblEditLength.Value = "Lines Remaining " +STR(MEMLINES(edtMemoField))+ " of 24"
ThisForm.lblEditLength.Refresh()
This one may be best becuase SET MEMOWIDTH will determine the width of a line.
So if you want a line to be 100 characters, in the Form INIT or Load:
SET MEMOWIDTH 100
Where edtMemoField is the name of whatever edit object (text box, edit box, etc) you're using for the text entry.
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."
![[hammer] [hammer] [hammer]](/data/assets/smilies/hammer.gif)