dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: extend the function class

Threaded View

  1. #1
    Join Date
    Oct 2009
    Posts
    28

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)