Thanks, Jim! Works perfectly. And your answer came just in time. It seems that I will have a need for xmlupdategram() right now.
>I haven't a clue why memo fields are left out unless you set Keyfieldlist...
Doesn't make any real sense to me, too. I tested xmlupdategram() with a cursor that was created this way: SQL-PT resultset (key field list set) -> cursortoxml() -> xmltocursor(). Since the schema included in the XML contained the information that the ID field was the primary key, xmlupdategram() automatically put the ID field in it's generated XML, even when I didn't change the content of it. So in some way, VFP already knew the key field, even if it wasn't returned by cursorgetprop(). Ok - I know how to get it to work and that's the most important thing :)
Thanks again,
Armin
>In order for memo fields to be included, you need to set the KeyFieldList property of the cursor using Cursorsetprop(). This has another effect - the before and after list will only include changed fields, not all fields, once you set KeyFieldList.
>
>I haven't a clue why memo fields are left out unless you set Keyfieldlist...