>I want to use WITH .... ENDWITH with different objects that will be defined at the rum-time. How can I do that?
And for all the variations they given you, you can use the AS clause to get Intellisense, for example, using Fabio's approach:
with getpem(someobject,"dynamicObject") as myClass of myClassLib
endwith
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges