Hi:
I am not sure what the code would be to achieve this.
I am looking for a way to give an alias to an object, so I can assign values
to the object regardless of the name.
What is the way to make an object which is just a shortcut to another
object, so when I am referring to the shortcut, it is really altering the
original object?
something like a myAlias but I am not sure how to declare it
If something then
myAlias = dataGRID1
elseif something else
myAlias = dataGRID2
else
myAlias = dataGRID3
end if
<ADO functions to create dataset as oDS>
myAlias.DataSource = oDS
myAlias.Databind()
I want to not have to write the ADO functions three times. I need to
determine the datagrid up front, and not after the ADO functions for logical
reasons within the code.
VB .NET or C# example would be fine. Hopefully VB .NET given the newsgroup
:)
Thanks!