2012/2/10 Emil Lenngren <emil.lenng...@gmail.com> > Did the Object solution not solve your problem? It should work in all cases > when the name of the function/property is the same at all calls/property > readings. >
II want to write just one method that allow me to call whatever method I could need from one collaborator (the array in this case). That is why I think that this approach will not work. > If you use different symbol names each time, maybe you can use something > like this: > Try > Return Object.GetProperty(object, name) > Catch > Return Object.Call(object, name) > To check or to catch. That is the question. :) > But you probably should try another code design if you really need this > kind of code ;) > > /Emil > Humm. I want to avoid the need to write a wrapper for each method that I need expose from the "helper" class. The easy way is to move the fingers faster. But eventually that will become in a disease. (the issue of the carpal tunnel) :) But, if you knows a better way to do that, please let me know. Thank you. Fabián ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user