Google Table and clipboard

Google Table and clipboard

Postby Natter » Wed Oct 14, 2020 5: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 ?
Natter
 
Posts: 1212
Joined: Mon May 14, 2007 9:49 am

Google Table and clipboard

Postby Jack » Thu Oct 15, 2020 8: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
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am

Re: Google Table and clipboard

Postby nageswaragunupudi » Sun Oct 18, 2020 4: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: Select all  Expand view

XBROWSER "STATES.DBF" SETUP oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROWMS
 


Image
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10622
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 29 guests