Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class Name in Fox Pro for Windows

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi, I'm doing a program in Foxpro for Windows 2.6,yeah, yeah, yau can't believe it, but it's still alive.

well my problem is that i need to call an aplication like power point or excel from my program, i'm using append general command, but this command needs the name of the class of the aplication .

I didn't find the name.

If someone knows, i will aprecciate.

 
CESAR_SOTO

I'm not sure if things work the same in Visual FoxPro then in FoxPro 2.6, but you may get a more precise answer in the Foxpro26. forum, unless rgbean (or anyone more familiar with FPW) is willing to take a crack at you problem in this forum.
In VFP6 (or 7.0) I see the help tells me the syntax for appending a general field for an Excel file with the link parameter is:
Code:
APPEND GENERAL mygenfield FROM C:\EXCEL\BOOK1.XLS CLASS EXCELCHART
Mike Gagnon
 
See Mike, you didn't need my help! :) Actually, you really don't need to specify the CLASS unless the file extension is not registered to the given application. So:
Code:
APPEND GENERAL mygenfield FROM C:\EXCEL\BOOK1.XLS
will use Excel (as long as it's installed!). On the other hand if you had a speadsheet saved as .TXT, then you'd need:
Code:
APPEND GENERAL mygenfield FROM C:\EXCEL\BOOK1.TXT CLASS Excel.Sheet
Rick

Note: For the record, I believe the VFP Help file is wrong - it should read:
Code:
APPEND GENERAL mygenfield FROM C:\EXCEL\BOOK1.XLS CLASS EXCEL.CHART

 
Rick

See Mike, you didn't need my help!

No, but I haven't touched 2.6 for such a long time and I didn't want suggest code that didn't work in 2.6 without a warning. Mike Gagnon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top