Re: X# and .NET Core

2020-07-31 Thread Johan Nel
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://gi

Re: X# and .NET Core

2020-07-31 Thread Alan Bourke
Lambda expressions are indeed both hard to understand initially but also a godsend in many situations. -- Alan Bourke alanpbourke (at) fastmail (dot) fm ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: https://mail.leafe.com/mailma

Re: X# and .NET Core

2020-07-31 Thread Stephen Russell
Lamda is so easy to work with, in my mind when you have the data because running back to either the api or your database is costly. This run is used in posting lists of our employees by plant, to an API service that makes filling out accident reports on-site at our plants accessible on their phone

Re: X# and .NET Core

2020-07-30 Thread MB Software Solutions, LLC
To be honest, I never liked DotNet lambda expressions.  This line makes my eyes roll. On 7/30/2020 2:17 PM, Stephen Russell wrote: If you are filtering you should consider lamda expressions (x => x.ColumnName != 0).ToArray() -- This email has been checked for viruses by Avast antivirus softw

Re: X# and .NET Core

2020-07-30 Thread Stephen Russell
maybe it is a linq call for loading the VFP data into a .NET friendly data object? Here is a how to do it in the OLD days of LINQ. This would give you the dataobject you would foreach() through. using System.Data; using System.Data.OleDb; public class YourClass{ public DataTable GetYourData()

Re: X# and .NET Core

2020-07-30 Thread Matt Slay
>>  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/38

Re: X# and .NET Core

2020-07-30 Thread Stephen Russell
Scan is an iteration through data,right? I would just use foreach() loop. Now how do you get your data into an object in X# I do not know. If you are filtering you should consider lamda expressions (x => x.ColumnName != 0).ToArray() On Wed, Jul 29, 2020 at 11:01 AM MB Software Solutions, LLC < m

Re: X# and .NET Core

2020-07-30 Thread MB Software Solutions, LLC
I asked because of the DO WHILE !EOF and SKIP in the sample code below. On 7/29/2020 12:06 PM, Matt Slay wrote: Yes, Scan/EndScan now supported in X#. - Matt Slay On 2020-07-29 11:00 AM, MB Software Solutions, LLC wrote: No SCAN/ENDSCAN support yet? On 7/29/2020 11:56 AM, Johan Nel wrote:

Re: X# and .NET Core

2020-07-30 Thread Eric Selje
And if there's something that's not quite supported yet, there's a file called dbcmd.xh that you can use to "create" commands. e.g. #command SCAN => CoreDb.GoTop(); DO WHILE NOT CoreDb.Eof() #command ENDSCAN => CoreDb.Skip(1); ENDDO See the SWFox X# whitepaper

Re: X# and .NET Core

2020-07-29 Thread Matt Slay
Yes,  Scan/EndScan now supported in X#. - Matt Slay On 2020-07-29 11:00 AM, MB Software Solutions, LLC wrote: No SCAN/ENDSCAN support yet? On 7/29/2020 11:56 AM, Johan Nel wrote: Hi all VFPers, Well have not posted much lately about X# here due to some other issues I have to attend to, bu

Re: X# and .NET Core

2020-07-29 Thread MB Software Solutions, LLC
No SCAN/ENDSCAN support yet? On 7/29/2020 11:56 AM, Johan Nel wrote: Hi all VFPers, Well have not posted much lately about X# here due to some other issues I have to attend to, but good progress are made with support for the VFP dialect. As per the message regarding .NET Core, I would also

X# and .NET Core

2020-07-29 Thread Johan Nel
Hi all VFPers, Well have not posted much lately about X# here due to some other issues I have to attend to, but good progress are made with support for the VFP dialect. As per the message regarding .NET Core, I would also like to share progress with X# regarding .NET Core support. Attached