On 2020/07/30 20:43, Matt Slay wrote:
Now how do you get your data into an object in X# I do not know.
Indeed, still waiting on them to implement the SCATTER/GATHER commands.
It is listed as Github issue # 387 with a Jun 2020 Miletsone, but I think they missed that a little...
https://github.com/X-Sharp/XSharpPublic/issues/387
Robert has replied in the discussion forum with "It will be relatively easy to implement this with a UDC."
as can be seen in this message thread" https://www.xsharp.info/forum/private-vfp/1278-scatter-dumping-a-data-row-to...
Matt that thread is in the FOX private groups.
The problem is not the COMMANDS itself, it is the underlying functions that need to be implemented. To create the commands are probably less than an hours work. See the following:
#command SCATTER <f> <v> => <v>.<f> := FieldGet(<(f)>) #command GATHER <f> <v> => FieldPut(<(f)>, <v>.<f>) // I assumed GATHER <field> <dataobject> as syntax
Very simplistic example to merely take a field from the current workarea and put it into an object property with the same name and the reverse to write it back to the DB.
Once the functions are in place, the commands will follow very soon.