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.
#Define ccPropjectpath [D:\vfpprojects\singleformVCX\]
MkDir (ccPropjectpath)
Cd (ccPropjectpath)
MkDir [libs]
MkDir [others]
MkDir [prgs]
Create Project singleformVCX.pjx Nowait Save
Local lcFile
Text To lcFile Noshow
On Shutdown Quit
Set Classlib To [forms] Additive
Local loMainform
loMainform=Createobject("frmmain")
loMainform.Show()
Read Events
EndText
StrToFile(lcFile,"prgs\main.prg")
_vfp.ActiveProject.Files.Add("prgs\main.prg")
Text To lcFile Noshow
SCREEN=OFF
RESOURCE=OFF
ALLOWEXTERNAL=ON
EndText
StrToFile(lcFile,"others\config.fpw")
_vfp.ActiveProject.Files.Add("others\config.fpw")
Local Array laForm[1]
Local loForm
Create Class frmMain Of [libs\forms.vcx] As Form Nowait
ASelObj(laForm,1)
loForm = laForm[1]
loForm.ShowWindow = 2 && as top level form
loFOrm.Autocenter=.T.
loForm.Caption="Main Form"
loForm.WriteMethod("Unload","Clear Events")
Activate Window "Class Designer" && change in localized VFP versions
Keyboard '{CTRL+S}'
Keyboard '{CTRL+F4}'
Doevents
_vfp.ActiveProject.Files.Add("libs\forms.vcx")
_vfp.ActiveProject.Build("singleformVCX.exe",3,.t.,.t.,.t.)
#Define ccPropjectpath [D:\vfpprojects\singleformSCX\]
MkDir (ccPropjectpath)
Cd (ccPropjectpath)
MkDir [forms]
MkDir [others]
MkDir [prgs]
Create Project singleformSCX.pjx Nowait Save
Local lcFile
Text To lcFile Noshow
On Shutdown Quit
Do Form frmMain
Read Events
EndText
StrToFile(lcFile,"prgs\main.prg")
_vfp.ActiveProject.Files.Add("prgs\main.prg")
Text To lcFile Noshow
SCREEN=OFF
RESOURCE=OFF
ALLOWEXTERNAL=ON
EndText
StrToFile(lcFile,"others\config.fpw")
_vfp.ActiveProject.Files.Add("others\config.fpw")
Local Array laForm[1]
Local loForm
Create Form [forms\frmMain.scx] As Form Nowait
ASelObj(laForm,1)
loForm = laForm[1]
loForm.ShowWindow = 2 && as top level form
loForm.Autocenter=.T.
loForm.Caption="Main Form"
loForm.WriteMethod("Unload","Clear Events")
Activate Window "Form Designer" && change in localized VFP versions
Keyboard '{CTRL+S}'
Keyboard '{CTRL+F4}'
Doevents
_vfp.ActiveProject.Files.Add("forms\frmMain.scx")
_vfp.ActiveProject.Build("singleformSCX.exe",3,.t.,.t.,.t.)