Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
oForm1 = CREATEOBJECT('Form')
oForm1.Closable = .F.
oForm1.height = 300
oForm1.width = 400
oForm1.AddObject('cmdCommand1','cmdMyCmdBtn')
oForm1.AddObject("oleObject","oleExcelObject")
oForm1.cmdCommand1.Visible=.T.
oForm1.oleObject.Visible=.T.
oForm1.oleObject.Height = 200
oForm1.oleObject.width = 350
oForm1.Show
oForm1.oleObject.DoVerb(-1)
READ EVENTS
DEFINE CLASS oleExcelObject as OLEControl
OleClass ="Excel.Sheet"
DocumentFile = GETFILE('xls')
ENDDEFINE
DEFINE CLASS cmdMyCmdBtn AS CommandButton
Caption = '\<Quit'
Cancel = .T.
Left = 125
Top = 210
Height = 25
visible = .t.
PROCEDURE Click
CLEAR EVENTS
ENDDEFINE
FWIW.You set the DocumentFile property of a linked OLE object using the Insert Object dialog box when you initially add an OLE container to a form. You can also set this property when creating an OLE object using the APPEND GENERAL command or when defining the object in code as part of a class definition.