>I cant change the ALINE to an Mline as I am not running it against a memo field. I >need to separate a character string into separate parts. E.g:
MLine() is not limited to memo fields. See a sample in my reply to Martin.
>lnRtn = ALINES(ArrLotNo,lcLotNums,.T.,',',';',' AND ','&')
You may run the following code before using the MLine() function:
lcLotNums=Chrtran(m.lcLotNums,',;&',Chr(13)+Chr(13)+Chr(13))
lcLotNums=Strtran(m.lcLotNums,' AND ',Chr(13))
Ben