*--Main.prg (App's main program) PARAMETERS llautorun, llforcedbf, llforceindex, llforcepack, llpolcall, lcdefaultpath IF PARAMETERS()=0 && run separately outside any other app STORE .F. TO llautorun, llforcedbf, llforceindex, llforcepack, llpolcall ELSE && called from within Policy Profiler STORE .T. TO llpolcall ENDIF *--Do form passing the following params DO FORM Rebuildall LINKED WITH llautorun, llforcedbf, llforceindex, llforcepack, llresult, llpolcall *--Check for returning result from form IF llresult *--My code here ENDIFThen in the form's init method:
*--Rebuildall.init() PARAMETERS llautorun, llforcedbf, llforceindex, llforcepack, llresult, llpolcall THISFORM.llautorun=llautorun THISFORM.llforcedbf=llforcedbf THISFORM.llforceindex=llforceindex THISFORM.llforcepack=llforcepack THISFORM.llresult=llresult THISFORM.lcdefaultpath=sys(2003)Then in the form's release method:
*rebuildall.release() llresult=thisform.llresult DODEFAULT() CLEAR EVENTSThen in the form's unload method:
*Rebuildall.unload() RETURN llresult>Hello everybody
>if empty(gcOld_dir)
> do form c_path with gcOld_dir
> if empty(gcOld_dir)
> quit
> else
> replace tbl.old with gcOld_dir
> endif
>else
> replace tbl.old with gcOld_dir
>endif
>
>
>did I explane it ok???.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"