Marcel,
memlines() is affected by the current SET MEMOWIDTH, alines() is not. Why do you have () around the alias.field '(grdnotes.note)'?
>My editbox is a subclass, but I haven't changed any of the default settings.
>Like I said it works fine on this test form I created. (I did try using the baseclass directly too though).
>I even deleted the whole container and created a new one only with some basic settings.
>Again it does the same thing. It will not run on my production form.
>Funny thing. I decided to enter 6 lines of text in the memo, hitting enter after each one.
>The first line in the edit box shows correct, until it is longer than 40 characters.
>the second line only show 15 characters after which the line is cut off.
>the third line doesn't show at all. (I just noticed that if first line is 40 chars then it doesn't display other lines at all)
>
>Yet again, in my testform it displays correctly.
>
>Here is the code in setNotes()in the ctnrNotes Container:
>
>WITH this.grdNotes
> .AllowCellSelection = .T.
> .RecordSourceType = 1
> .RecordSource = SPACE(0)
>
>
> SELECT cnotes.note_date, cnotes.name, cnotes.note_type, cnotes.note, cnotes.note_key ;
> FROM cnotes ;
> WITH (buffering = .t.) ;
> INTO CURSOR grdNotes
>
>
> .RecordSource = 'grdNotes'
> .column1.controlsource = 'grdNotes.note_date'
> .column2.controlsource = 'grdnotes.name'
> .column3.controlsource = 'grdnotes.note_type'
> .column4.controlsource = '(grdnotes.note)'
>ENDWITH
>scan
>messagebox(MEMLINES(grdNotes.note))
>MESSAGEBOX(ALINES(atest,grdNotes.note))
>ENDSCAN
>
>
>
>
>I just don't get it.