Basically, you'll use SQLStringConnect to pass the entire connection string. The various elements that you'll pass within the string (many are optional) depends on what ODBC driver (hence, what data source) you are using. Robert Bradley Support operation moo!
Visit the OpCow page
the following code with take the alias tmp
(Make sure you are at the top of the table)
copy to the clipboard(datatoclip), open excel
and paste it into a spreadsheet
select tmp
goto top
_vfp.DataToClip("tmp",reccount(),3)
* copy to (ofile) type xl5
oexcel=createobject("Excel.application"
oWorkbook = oExcel.Workbooks.Add()
oBook = oExcel.Workbooks.Add()
oExcel.Visible = .T.
oBook.Sheets[1].paste()
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.