FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Google Table and clipboard
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Google Table and clipboard
Posted: Wed Oct 14, 2020 05:30 PM

Hi,

Google Table is open in the browser. Is it possible to simulate Ctrl+C from the FW program to write the contents of the current sheet of this table to the clipboard ?

Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Google Table and clipboard
Posted: Thu Oct 15, 2020 08:30 AM

Hi,
Could you give more info about google table ?
How to use it, how to establish connection with google account ?

Thanks for samples ,

Philippe

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Google Table and clipboard
Posted: Sun Oct 18, 2020 04:03 PM
We can copy from XBrowse by pressing Ctrl-C and paste into Excel or Google Sheet, by going to the sheet and pressing Ctrl-V or the paste button.

1. Copying value of single cell:
If oBrw:nMarqueeStyle >= 0 and <= 3 (MARQSTYLE_NOMARQUEE/ MARQSTYLE_DOTEDCELL/ MARQSTYLE_SOLIDCELL/ MARQSTYLE_HIGHLCELL), pressing Ctrl-C on any cell in xbrowse, copies value of the highlighted cell only to the clip board. Pasting in Excel / Google Sheet pastes value of that cell only.

2. Copying values of all cells in a row:
If oBrw:nMarqueeStyle >= 4, pressing Ctrl-C in xbrowse copies values of all cells in the highlighted row as tab delimited text to the clip board. Pasting in Excel / Google sheet pastes the contents of all cells of the row in the corresponding cells of the sheet.

3. Copying values of all cells in many selected rows:
If oBrw:nMarqueeStyle == 6 (MARQSTYLE_HIGHLROWMS), user can select mulitple rows using Ctrl-Click / Shift-Click. Then pressing Ctrl-C copies contents of all cells in all the selected rows as tab and crlf delimited text. When pasted in the Excel / Google Sheet all values of all the selected rows are pasted.

Example:
Code (fw): Select all Collapse
XBROWSER "STATES.DBF" SETUP oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROWMS


Regards



G. N. Rao.

Hyderabad, India

Continue the discussion