![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Just a quick question: does anyone use the keyword Friend anytime they are building a class? I dont and I was just wondering if others do. Cheers The Frog |
#3
| |||
| |||
|
|
On Apr 13, 12:38*am, The Frog <mr.frog.to.... (AT) googlemail (DOT) com> wrote: Just a quick question: does anyone use the keyword Friend anytime they are building a class? I dont and I was just wondering if others do. Cheers The Frog You know, I think you make a good point. I don't use the keyword Friend any more either. I think we should all start doing that again and maybe some of the rudeness would drop away and we'd start seeing more politeness like in the old days. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hi Guys, Eggs, you are of course correct. That being said I find this newsgroup to be most helpful and friendly, especially when I copmare it to some of the others. I have seen some appalling language and lack of common courtesy for example in various Java newsgroups and Excel VBA Macros. On the whole I prefer to spend my limited time here to learn from experienced experts who graciously share their time and knowledge (sucking up is friendly right?). Tom, the OO keyword Friend is available in VBA, I am just not sure that it has any use. To quote from the helpfile: "Modifies the definition of a procedure in a form module or class module to make the procedure callable from modules that are outside the class, but part of the project within which the class is defined. Friend procedures cannot be used in standard modules." Since I am aware of no actual way to create a second project inside the one Office document / Access database file I can only assume that it might have some use in a library database, but cant see how. I am finding myself running into the limits of the OO capabilities quite a bit at the moment, but as was the case with the first lightbulb there are many ways to achieve what needs to be done and they dont all work on the first try. Cheers The Frog |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
I'm pretty sure the OP meant the Friend keyword as it is supported by most object-oriented languages. Alas, VBA is not one of them. |
#8
| |||
| |||
|
|
Tom, you may be right. An add-in to elevate the VBA IDE to the capabilities of full VB6 probably wouldnt be a bad idea. |
|
With A2010 (which I havent seen yet, I am still with A2003) is the IDE and VBA the same as earlier versions? I have heard that .Net can be directly integrated (ie/ code modules) but perhaps this is only with the VSTO. I am most curious to explore this avenue and 'better' the IDE, but I expect it will be a slow process to develop such a thing. |
#9
| |||
| |||
|
|
Tom, the OO keyword Friend is available in VBA, I am just not sure that it has any use. To quote from the helpfile: "Modifies the definition of a procedure in a form module or class module to make the procedure callable from modules that are outside the class, but part of the project within which the class is defined. Friend procedures cannot be used in standard modules." |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |