> PROCEDURE GetCursor > PARAMETERS tcMessageType, tcCursorType > = Dodefault() && no Parameter fwd ?? > local loX, luRet > loX = createobject(m.tcMessageType + "_ParseHelp_" + m.tcCursorType) > luRet = loX.Doit() > return m.luRet > ENDPROC > > define class HL7_ParseHelp_Demographics as xxx_ParseHelp_yyy > enddefine > > define class xxx_ParseHelp_yyy as base_ParseHelp_base > enddefine > > *-- version 2 re-using private parameters" > define class aggregator as custom > func doit() > local ; > loMess, loCurs ; > , luMess, luCurs > loMess = createobject(tcMessagetype ) > loCurs = createobject(tccursortype) > luMess = loMess.Doit() > luCurs = loCurss.Doit() > return &&& whatever > > enddef >>
PROCEDURE GetCursor PARAMETERS tcMessageType, tcCursorType, tcCursorName Dodefault() && no Parameter fwd ?? - yes a bit odd but may be select * from (m.tcMessageType + "_" + m.tcCursorType) ; where .f. ; into cursor (m.tcCursorName) readwrite ENDPROCCetin