extend the function class
hi all, is there any way to extend upon a procedure itself?
like i want to be able to do the following
Code:
public sub test()
msgbox(special())
end sub
and it should popup a string, let's say "cool", plus i shld be able to use special() in every single sub but if we call special() from a function it should be rejected. how can that be done?
also, we should also be able to do the following
Code:
public sub test()
msgbox(specialvariable)
end sub
whereby specialvariable is accessible by every sub.
Re: extend the function class
Yet again... use a public sub / function, from a module.
You should also look into creating subs and functions with parameters.
And, look into the sender object, which you could use to determine what procedure called the function / sub
Re: extend the function class
alrite, i will look into the sender thing thanks
Re: extend the function class
Also, you should try to learn about Object oriented Programming before using .NET. VB/C# both are OOP languages and in order to program better in either of the languages one should first learn OOPS.