But you use variable not memo field? You should go through this loop.
Also, Backup this Class Library, Open it as a table exclusive, then PACK it and REINDEX it. After that Recompile it and see if you get the same error again.
>Hi Borislav
>
>I am now nearer the problem although I still dont understand it.
>
>Before I get error I did a STRTOFILE(lcbodytext,c:\neil.txt,0) and contained within this file is exactly what I want.
>
>When I resume I get an error message:
>
>'Compiled code for this line is too long'
>
>When I suspend the problem lies in this block of code:
>
>
>* Convert body text field to data (if it is a field)
>IF TYPE(lcBodyText)='M'
> lcTemp=""
> FOR lnLoop=1 TO MEMLINES(&lcBodyText.)
> lcTemp=lcTemp+MLINE(&lcBodyText.,lnLoop)
> lcTemp=lcTemp+CHR(13)
> ENDFOR
> lcBodyText=lcTemp
>ENDIF
>
>
>This block of code is used in the Sendmail program used on the Outlook Class for sending mail.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.