>Hi,
>
>I need to add about 10 (max) propertied to the application object. These properties will hold names of various meta tables of the application. Then, in many places of the application, this values will be retrieved and used. I know of two approaches
>
>1. Create a separate property for each one of the meta names (e.g. "MyMetaTbl1", "MyMetaTbl2", etc.). Then I would have to have as many Get methods in the application object to retrieve these values (e.g. method GetMyMetaTbl1, method GetMyMetaTbl2, etc.
Although this does seem as a straightforward case for the use of a collection (i.e. for once I'm voting with the majority :), you can still use simple properties. Just make sure they all exist:
for i=1 to n
goapp.addproperty("mymetatbl"+alltrim(str(i)), "")
endfor
then later you can simply retrieve the value of the property even if you have the name of it in a variable:
lcMeta=getpem(goapp, lcWhichMeta)
...which is poor man's collection :).