I'm going though some VB6 code where the Set statement is used to apparently declare and set the Object variable at the same time. I have been used to having to declare the variable first, then use the Set statement. Here's an example:
Set adapter = access.getDefaultAdapter
This stands alone, no previous declaration of the variable "adapter". When I look up the help topic of the Set statement, it doesn't mention being able to do it this way. Is this just an unwritten "feature" of VB6 or am I missing something?
Thanks,
Scott