Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request - New Function: CreateWorkAreaFromDataTable(oTable, cAlias) #251

Open
mattslay opened this issue Oct 28, 2019 · 0 comments
Open
Labels
FoxPro FoxPro dialect RDD

Comments

@mattslay
Copy link

Request: A new Function that will create a Work Area from a DataTable.

The reason for this request is when we get a DataTable from ADO.Net Sql Server calls, we may want to use our favorite XBase commands like Scan, Locate, Append, Replace, etc to work on the data, in a Work Area manner for data processing, report generation, save to DBF, etc.

The would create a Work Area from a DataTable, with all the same exact features that we'd have if we opened the Work Area from a DBF with the USE command.

Of course, the data structure of the created Work Area must match the field names and data types of the source Data Table.

This would closely match the existing functionality of the VFP SqlExec() Function which runs a SQL query string against a database server (Sql Server, MySQL) and returns a (disconnected) VFP Cursor. If DB updates we then issue Sql UPDATE calls via SqlExec() to update Sql Server, but that is not in the scope of this new function. We already have VFP code libraries to generate Sql Server Update commands from a local VFP Cursor.

This might also merit another Function named CreateDataTableFromWorkArea(), but that is not in the scope of this request.

@RobertvanderHulst RobertvanderHulst added this to the 2.3 and later milestone Oct 31, 2019
@RobertvanderHulst RobertvanderHulst modified the milestones: 2.3 and later, November 2019 Nov 28, 2019
@RobertvanderHulst RobertvanderHulst added FoxPro FoxPro dialect RDD labels Dec 30, 2019
@RobertvanderHulst RobertvanderHulst modified the milestones: April 2020, May 2020 May 2, 2020
@RobertvanderHulst RobertvanderHulst modified the milestones: May 2020, June 2020 Jun 5, 2020
@RobertvanderHulst RobertvanderHulst removed this from the August 2020 milestone Apr 8, 2021
@RobertvanderHulst RobertvanderHulst added this to the X# 2.14 milestone Jul 29, 2022
@RobertvanderHulst RobertvanderHulst removed this from the X# 2.14 milestone Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FoxPro FoxPro dialect RDD
Projects
None yet
Development

No branches or pull requests

2 participants