>local lctable,lcindex,lcfield,lcsearch > >lctable="stocks" >lcIndex="code" >Lcfield="code" >Lcsearch="" > >do form SrchForm with m.lctable,m.lcIndex,m.Lcfield,m.Lcsearch > >* form is modal >* form init >lparamaters lctable,lcindex,lcfield,lcsearch > >with this.grid1 >.recordsource=m.lctable >.refresh >endwith > >* form unload >lcsearch=m.lctable+"."+m.lcfield >return m.lcfield > >>
*Form.init - private datasession lparameters m.tctable,m.tcIndex,m.tcfield,m.tcsearch this.AddProperty('cEval',ForceExt(m.tcTable,m.tcField)) this.AddProperty('uRetValue',.null.) use (m.tcTable) order tag (m.tcIndex) this.grid1.RecordSource=m.tcTable *Grid.AfterRowColChange lparameters nColIndex thisform.uRetValue = eval(thisform.cEval) *Form unload return this.uRetValueCetin