instantobjects

How can I create objects with reference using instantobjects framework programmaticaly in Delphi code

…衆ロ難τιáo~ 提交于 2019-12-10 12:15:30
问题 I am a experimenting with instantobjects. I have two simple classes tband and tcountry both are defined as stored. tband has a properts named tcountry referencing the tcountry class/table. (country is the lookup table). When creating a new band I want the user to be able to select the country in the form from a list/combo and then save the band object. I tried something like: Band.Create(nil); Country.Create(nil); Country := CountrySelector.CurrentObject as TCountry; // here I get an