PDA

View Full Version : What's the difference between VBA.method vs Strings.method



malik641
05-30-2007, 08:17 PM
Hey all,

Just curious to know what is the difference between VBA.method and Strings.method whose methods share the same name? Are there any other "???.method"'s that I don't know about which are built-in? Why have VBA.method and Strings.method when they seem to do the same thing?

Thanks,
Joseph

Jan Karel Pieterse
05-30-2007, 09:23 PM
Because strings.method only gives you methods pertaining to string operations and VBA.method gives you all others as well.

malik641
05-31-2007, 04:55 AM
I see. From that I just noticed the Math.method.

...then I just noticed that they are found in VBA.classes. Is that right to say, "classes?" Strings, Math, Interaction, etc are classes?

Bob Phillips
05-31-2007, 07:01 AM
It is right with regard to the OB, but classes was a poor choice for the heading, as it contains much more, modules, constants, etc.