Yes, I understand. But the "bug" comes in to play because apparently Foxpro allows you to recreate cursors of REMOTE DATA that include fields that start with numbers. I'm guessing that is to remain compatible with SQL. However, the conflict or bug occurs if you try to then use that remote data cursor to create a new cursor that complies with Foxpro's rule to not support fieldnames that start with a number.
If there is any bug here, I think it is that Foxpro handles this situation perfectly in the development environment, but fails to adjust for this in the runtime.
Otherwise, I think it is more of a specification conflict between SQL and Foxpro.
Paul
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Fernando D. Bozzo Sent: Thursday, April 19, 2018 11:54 AM To: profoxtech@leafe.com Subject: Re: INSERT INTO...SELECT Issue
Hi Paul:
The problem is that Visual FoxPro explicitly says in documentation that field names must start with a letter or underscore, so if in some rare situation VFP respects a field name starting with a number it's really a bug, and that's why this do not work allways.
Here is the spec on VFP name creation: https://docs.microsoft.com/en-us/previous-versions/visualstudio/foxpro/d7aa5...)
El jue., 19 abr. 2018 17:45, Paul H. Tarver paul@tpcqpc.com escribió:
I posted a full detailed description of the process and all the testing I've done so far in this thread:
https://leafe.com/archives/msg/510840
Paul
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Peter Cushing Sent: Thursday, April 19, 2018 8:53 AM To: profoxtech@leafe.com Subject: Re: INSERT INTO...SELECT Issue
On 19/04/2018 14:38, Paul H. Tarver wrote:
<snip>
My question is this: Has anyone here run into this issue and if so, Is
there
any another way or procedure around this situation that would allow me to manually fix the fieldnames which start with a number assuming I have no
way
to change the source data.
Not run into that issue but just want to check what actually happens, as not quite sure from your description. The client gives you a spreadsheet file. Are you then appending that into a cursor and trying to select from the cursor into some other table?
Peter
,"This communication is intended for the person or organisation to whom it is addressed. The contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you have received this message in error, please notify us immediately by telephone or email.
www.whisperingsmith.com
Whispering Smith Ltd Head Office:61 Great Ducie Street, Manchester M3 1RR. Tel:0161 831 3700 Fax:0161 831 3715
London Office: 101 St. Martin's Lane,London, WC2N 4AZ Tel:0207 299 7960
[excessive quoting removed by server]