Thanks Al. I had a mashup of these 2 lines of code into just one line of code and i had left off TO MEMVAR in my last attempt. I was writing out the results to a FILE called "lcCursor" instead of to the memvar itself. It now works.
SET TEXTMERGE ON
SET TEXTMERGE TO MEMVAR lcCursor NOSHOW
>>No joy trying to use SET TEXTMERGE in a SCAN loop and output info/html to a memvar. When i display the value of the memvar at the end, nothing is shown. (there is data)
>>
>>
>>lcCusor = ""
>>SET TEXTMERGE ON TO MEMVAR lcCursor NOSHOW
>>\ html code output here
>>SCAN
>>\ html being output here
>>\ html being output here
>>\ html being output here
>>\ html being output here
>>ENDSCAN
>>\ html being output here
>>\ html being output here
>>SET TEXTMERGE OFF
>>?lcCursor
>>
>
>If you take out the SCAN..ENDSCAN loop and its contents entirely, do you get any value?