Thanks for the response Kirk.
> On Oct 25, 2019, at 14:45, Kirk Brooks via 4D_Tech <[email protected]> > wrote: > > OB Get works on any object so you could call > > $value:=OB > Get(myObject.data.object.billing_details.address;"postal_code";Is text) > > and it will work because myObject.data.object.billing_details.address is an > object. As you point out, dot notation does work as I expected it should. I just had the wrong syntax for OB GET. > It's handy to break up objects like that if you are doing more than one > thing with them. I might do something like: > > $adrs_obj:=myObject.data.object.billing_details.address > > so that > > $value:=$adrs_obj.posta_code > > And this also makes it easier to update the address object: > > $adrs_obj.posta_code:="new zip code” > Thanks for pointing that out. Assigning the object reference to a variable makes maintenance much easier. > Doing that also updates myObject and illustrates why objects and references > to them are so great. You can perhaps see that having a standard object for > all the addresses you use would allow you to write some methods for working > with them, or verifying them, that take an address object as the parameter > and modify the contents. Think looking up the lat/lon, correcting spelling, > verifying, etc. > > My_address_verify($adrs_obj) > Thanks again. Tom ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

