|
-
October 31st, 2009, 07:33 AM
#1
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.
Last edited by pacerier; October 31st, 2009 at 07:41 AM.
Reason: make things clearer
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|