General information
Category:
Coding, syntax & commands
You should make a prg as main and include the following code
public ExePath && Executable Path
PUBLIC datapath && works database folders
PUBLIC formspath
* Set Default directory to Projects Directory
* If run from Visual Foxpro 6.0
IF !FILE('mainform.scx')
cCurrentProcedure = SYS(16,1)
nPathStart = AT(":",cCurrentProcedure)- 1
nLenOfPath = RAT("\", cCurrentProcedure) - (nPathStart)
ExePath=(SUBSTR(cCurrentProcedure, nPathStart, nLenofPath))
else
ExePath=sys(5)+sys(2003)
ENDIF
DataPath=exepath+"\data"
FormsPath=exepath+"\forms"
SET DEFAULT TO (ExePath)
do form formspath+"\mainform"
read events
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only