On Tuesday 30 April 2013 19:58:13 Med Hamza wrote: > Hi Martin, > > Many thanks for your reply. > > But this is not what* I expected answer* > * > * > * > * > *My mainForm contains * > * > * > * 2 tenumedit with the same ifilink * > * tenumedit1.tag:=1; tenumedit2.tag:=2;* > * enumedit1.ifilink:=DM.listofmonth; > **tenumedit2.ifilink:=DM.listofmonth; > (same 1)* > * > * > * > * > *in DM* > * > * > * listofmonth.onsetvalue=setvalue;* > * > * > *proc setvalue(.............................);* > * > * > * sql.params[ tag] :=avalue;* > * /* > * \* > * /------------------- that's the tag I want to > get from main form* > * tcustomificlientcontroller.*prop['<clientpropertyname>'] returns the value of the first matching client property,
tcustomificlientcontroller.*prop['<clientpropertyname>']:= <value> sets the matching property of all clients. You want to distinguish between clients so this mechanism can't be used, correct? I can change the signature of onsetvalue and other events to for example " setintegerclienteventty = procedure(const sender: tobject; const aclient: iificlient; var avalue: integer; var accept: boolean; const aindex: integer) of object; " where you could use " with aclient.getinstance as tmsecomponent do begin // do something with tag property end; " OK? Martin ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

