now that I am finally moving to a newer version of 4D, I can start to make use of Objects. I want to redesign my listbox system and componetize (is that a word?) it.
Currently I have the ability to define a column as a formula, the formula is a function call which returns, most often, text. The restrained result is displayed during the On Display Detail form event of the listbox. A simple example would be a function which returns the text for the Product description from [Products] for an [Invoice_Line_Item]. doing this in the context of a single system is simple. However, if I move to using a component for list boxes I am unsure how to go about implementing something similar, as the function (method) would be called in the context of the component, not the host. I suppose I could make the function(s) shared, but that would likely mean sharing 75 to 100 methods - which seems excessive, and it would also mean **remembering** o do this every time a new Listbox column function was created. I know tree are a few people out there who have listbox components - any tips or advise on how best to go about this? 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:[email protected] **********************************************************************

