Joe,
Data2Clip is a possibility but beware that the data transformation from VFP to 
Spreadsheet can be unpredictable and not result in a data type you expect.

Are you uploading the data in Sheet format or in an intermediate FORMAT LIKE 
csv?

I would do as Ted suggests and look at external sources. Personally, I use 
Chilkat Software a lot and there is an interface directly into Google Sheets

https://www.example-code.com/foxpro/googleSheets.asp

Demo version is free.

Dave Crozier
Software Development Manager
Flexipol Packaging Ltd.

Mob: 07967 671080

﴾⚆ᨎ⚆﴿



Flexipol® Packaging Ltd
T 01706 222 792
E dcroz...@flexipol.co.uk
W https://www.flexipol.co.uk/
Follow us: 
Unit 14 Bentwood Road, Carrs Industrial Estate, Haslingden, Lancashire, BB4 5HH

​This communication and the information it contains is intended for the person 
or organisation to whom it is addressed. Its contents are confidential and may 
be protected in law. If you have received this e-mail in error you must not 
copy, distribute or take any action in reliance on it. 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.
  
Flexipol Packaging Ltd. has taken every reasonable precaution to minimise the 
risk of virus transmission through email and therefore any files sent via 
e-mail will have been checked for known viruses. However, you are advised to 
run your own virus check before opening any attachments received as Flexipol 
Packaging Ltd will not in any event accept any liability whatsoever once an 
e-mail and/or any attachment is received.
  
 It is the responsibility of the recipient to ensure that they have adequate 
virus protection.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
​​
​Terms & Conditions:
 Notwithstanding delivery and the passing of risk in the goods, the property in 
the goods shall not pass to the buyer until the seller Flexipol Packaging Ltd. 
("The Company") has received in cash or cleared funds payment in full of the 
price of the goods and all other goods agreed to be sold by the seller to the 
buyer for which payment is then due. Until such time as the property in the 
goods passes to the buyer, the buyer shall hold the goods as the seller's 
fiduciary agent and bailee and keep the goods separate from those of the buyer 
and third parties and properly stored protected and insured and identified as 
the seller's property but shall be entitled to resell or use the goods in the 
ordinary course of its business. Until such time as the property in the goods 
passes to the buyer the seller shall be entitled at any time
-----Original Message-----
From: ProFox <profox-boun...@leafe.com> On Behalf Of Joe Yoder
Sent: 18 September 2021 04:29
To: profoxt...@leafe.com
Subject: Data transfer design Data transfer design (VFP to Google Sheets)

I have VFP code that combines multiple events recorded on a phone app into a 
single Timeline table.  The final step in the code is to copy to type XL5.  
Each time the code is run to include new data, the output file is written with 
the same name

I opened the resulting file in Google sheets with the data in the first tab 
called DATA. Subsequent tabs query the DATA  tab to produce charts with various 
combinations of events for various time frames.  The charts can be exported as 
PDFs for external use.

My issue is figuring out the best way to update the data in the Sheets file as 
new data is available.  Here are some considerations and ideas:

·        Each time I upload the data file to Google Drive the same filename
is assigned to a different file (all with the same name.) The only way I have 
found to determine which is the authority is to look at the last modified time. 
 This seems like an invitation to user errors.  Perhaps there is a 
configuration change to avoid this behavior.

·        Sheets has the capability to query data from an unopened table if
its URL is specified in the query.  Wiping and reimporting the data appears to 
be a workable approach but it requires finding the correct file to import to 
the DATA sheet with the specified URL used to hold the data,

·        Another possibility might be to open the table from VFP in Sheets
and record the URL on the clipboard and then open the Sheets file containing 
the chart specs and update the URL in the query.

·        Another might be to copy the data to the clipboard and then paste
it into a DATA tab on the Charts sheet.

·        Finally, I’m wondering if there is a way to write the data onto
the clipboard from VFP and then paste it directly into the Sheets Chart sheet.  
This would eliminate the nuisance of uploads and filename confusion.

·        A pure VFP approach would eliminate the need for data transfer,
but I chose the Google approach because I am new to charts and because I wanted 
to learn about Google’s capabilities.

Any suggestions welcome!

Thanks in advance - Joe


--- StripMime Report -- processed MIME parts --- multipart/alternative
  text/plain (text body -- kept)
  text/html
---

[excessive quoting removed by server]

_______________________________________________
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/lo2p265mb388102bc3a98682af3da16e4fb...@lo2p265mb3881.gbrp265.prod.outlook.com
** 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.

Reply via email to