Re: [repost] v13+ Object (not C_Object) references from a Component
THANKS! On Mon, 25 Mar 2019 21:27:48 +, Add Komoncharoensiri via 4D_Tech wrote: > Hi Chip, > >>> When the Object GET/SET commands are called from a Component >>> method, do they recognize that an object referenced by name is on a >>> Host form? > I don't think they behave differently from between v13 and v17. So a > quick answer is yes. > > Suppose your component method is > > // Method: obSetTitle >C_TEXT($1;$2) >OBJECT SET TITLE(*;$1;$2) > > If you host form has a button with object method that executes: > >obSetTitle (OBJECT Get name(Object current);"Hello") > > The button title will change accordingly. > > HTH, > > Add > > > > > On 3/25/19, 2:10 PM, "4D_Tech on behalf of Chip Scheide via 4D_Tech" > <4d_tech-boun...@lists.4d.com on behalf of 4d_tech@lists.4d.com> > wrote: > > I am unclear in what you are saying (sorry). > > Are you saying: > ... there exists, at least some, Form object commands which *will* > work, from inside a component method, on Host form objects? > > I know that in the Host, Object Get commands will retrieve (or set for > Object Set) a variety of Object properties; and I believe if the Form > (and its objects) are part of a component that the same commands will > do the same thing for the component form. > > What I am asking about - to be more clear (I hope) - > preferably for v13 (or v15) > When the Object GET/SET commands are called from a Component method, do > they recognize that an object referenced by name is on a Host form? > > > Thanks > ** > > ** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: [repost] v13+ Object (not C_Object) references from a Component
Hi Chip, >>When the Object GET/SET commands are called from a Component method, do they >>recognize that an object referenced by name is on a Host form? I don't think they behave differently from between v13 and v17. So a quick answer is yes. Suppose your component method is // Method: obSetTitle C_TEXT($1;$2) OBJECT SET TITLE(*;$1;$2) If you host form has a button with object method that executes: obSetTitle (OBJECT Get name(Object current);"Hello") The button title will change accordingly. HTH, Add On 3/25/19, 2:10 PM, "4D_Tech on behalf of Chip Scheide via 4D_Tech" <4d_tech-boun...@lists.4d.com on behalf of 4d_tech@lists.4d.com> wrote: I am unclear in what you are saying (sorry). Are you saying: ... there exists, at least some, Form object commands which *will* work, from inside a component method, on Host form objects? I know that in the Host, Object Get commands will retrieve (or set for Object Set) a variety of Object properties; and I believe if the Form (and its objects) are part of a component that the same commands will do the same thing for the component form. What I am asking about - to be more clear (I hope) - preferably for v13 (or v15) When the Object GET/SET commands are called from a Component method, do they recognize that an object referenced by name is on a Host form? Thanks ** ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: [repost] v13+ Object (not C_Object) references from a Component
I am unclear in what you are saying (sorry). Are you saying: ... there exists, at least some, Form object commands which *will* work, from inside a component method, on Host form objects? I know that in the Host, Object Get commands will retrieve (or set for Object Set) a variety of Object properties; and I believe if the Form (and its objects) are part of a component that the same commands will do the same thing for the component form. What I am asking about - to be more clear (I hope) - preferably for v13 (or v15) When the Object GET/SET commands are called from a Component method, do they recognize that an object referenced by name is on a Host form? Thanks On Mon, 25 Mar 2019 14:45:47 -0600, Dani Beaubien wrote: > Hi Chip, I know that using 4D v16 it is possible to use the OBJECT > GET commands to get information about the named objects. Not > completely sure about versions prior to 4D v16. I think some commands > would work and some would not. > > BTW, your example line for OBJECT GET BEST SIZE is missing the * as a > 1st param since you are using the name of the object. > > Dani Beaubien > Open Road Development > > >> On Mar 25, 2019, at 11:16 AM, Chip Scheide via 4D_Tech >> <4d_tech@lists.4d.com> wrote: >> >> If a component method is called from the Host system, where a Text is >> passed to the component method which is an object Identifier (ex: >> "obj_Accept_button" - which is the object name of a button on an entry >> form) >> can/does the component reference the host system object? >> >> Ex : >> Host system Form Object method: >> my_Component_Method("obj_Accept_Button") >> >> Component Method: - my_Component_Method: >> $Object_Name:=$1 >> OBJECT GET BEST SIZE($Object_Name;$Best_Width;$Best_Height) >> >> >> Will the component 'see' the host form object "obj_Accept_Button", or >> will the component look for the object within the component and, >> presumably, find nothing? >> >> Thanks >> Chip >> >> --- >> Gas is for washing parts >> Alcohol is for drinkin' >> Nitromethane is for racing >> ** >> 4D Internet Users Group (4D iNUG) >> Archive: http://lists.4d.com/archives.html >> Options: https://lists.4d.com/mailman/options/4d_tech >> Unsub: mailto:4d_tech-unsubscr...@lists.4d.com >> ** > --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: [repost] v13+ Object (not C_Object) references from a Component
Hi Chip, I know that using 4D v16 it is possible to use the OBJECT GET commands to get information about the named objects. Not completely sure about versions prior to 4D v16. I think some commands would work and some would not. BTW, your example line for OBJECT GET BEST SIZE is missing the * as a 1st param since you are using the name of the object. Dani Beaubien Open Road Development > On Mar 25, 2019, at 11:16 AM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > If a component method is called from the Host system, where a Text is > passed to the component method which is an object Identifier (ex: > "obj_Accept_button" - which is the object name of a button on an entry > form) > can/does the component reference the host system object? > > Ex : > Host system Form Object method: > my_Component_Method("obj_Accept_Button") > > Component Method: - my_Component_Method: > $Object_Name:=$1 > OBJECT GET BEST SIZE($Object_Name;$Best_Width;$Best_Height) > > > Will the component 'see' the host form object "obj_Accept_Button", or > will the component look for the object within the component and, > presumably, find nothing? > > Thanks > Chip > > --- > Gas is for washing parts > Alcohol is for drinkin' > Nitromethane is for racing > ** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
[repost] v13+ Object (not C_Object) references from a Component
If a component method is called from the Host system, where a Text is passed to the component method which is an object Identifier (ex: "obj_Accept_button" - which is the object name of a button on an entry form) can/does the component reference the host system object? Ex : Host system Form Object method: my_Component_Method("obj_Accept_Button") Component Method: - my_Component_Method: $Object_Name:=$1 OBJECT GET BEST SIZE($Object_Name;$Best_Width;$Best_Height) Will the component 'see' the host form object "obj_Accept_Button", or will the component look for the object within the component and, presumably, find nothing? Thanks Chip --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **