DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    com no spam lift Guest

    How does IBuySpy talk between classes using Property? And how about Functions?

    I am looking at the IBuySpy example. I can see that the IBuySpyDB.vb class
    has a Property called

    ConnectionString that is declared as Shared ReadOnly.

    How does .NET know to link the 2 between the ProductsDB.vb and IBuySpyDB.vb?

    Moreover, I know how to get a property value that is defined in a different
    class; BUT I don't know how to get a new Function that I created in
    IBuySpyDB.vb to be seen in ProductsDB.vb

    Is there some example somewhere to show me the correct syntax and
    declarations similar to how a Property value is accessed link in both the
    IBuySpyDB.vb and ProductsDB.vb?

    I keep getting a error User-defined type not defined error. So I am
    thinking that when I dimension and call the object or function in say the
    ProductsDB.vb, I am not doing that correctly OR I am not declaring the new
    function in IBuySpy.vb correctly to be seen in other classes.

    Thanks.

    s




  2. #2
    Mike Amundsen Guest

    Re: How does IBuySpy talk between classes using Property? And how about Functions?

    all the IBuySpy classes are in the same Namespace.

    MCA

    "com no spam lift" <com_no_spam_me_lift_jose8@pacbell.net> wrote in message
    news:39e0a5a9$1@news.devx.com...
    > I am looking at the IBuySpy example. I can see that the IBuySpyDB.vb

    class
    > has a Property called
    >
    > ConnectionString that is declared as Shared ReadOnly.
    >
    > How does .NET know to link the 2 between the ProductsDB.vb and

    IBuySpyDB.vb?
    >
    > Moreover, I know how to get a property value that is defined in a

    different
    > class; BUT I don't know how to get a new Function that I created in
    > IBuySpyDB.vb to be seen in ProductsDB.vb
    >
    > Is there some example somewhere to show me the correct syntax and
    > declarations similar to how a Property value is accessed link in both the
    > IBuySpyDB.vb and ProductsDB.vb?
    >
    > I keep getting a error User-defined type not defined error. So I am
    > thinking that when I dimension and call the object or function in say the
    > ProductsDB.vb, I am not doing that correctly OR I am not declaring the new
    > function in IBuySpy.vb correctly to be seen in other classes.
    >
    > Thanks.
    >
    > s
    >
    >
    >




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links