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-an-object#9182*
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.
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message:
https://leafe.com/archives/byMID/71e6b430-7d96-4751-f313-7c7c3fa2a...@xsinet.co.za
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.