DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Creatable Class

  1. #1
    Dean Earley Guest

    Creatable Class

    How would I make a class, so I can do this ...

    Dim X As StringEx
    X="hello"

    without a Set X = New StringEx

    I read somewhere to set a property of the class, but I only have two Data.... properties

    Any ideas?
    --
    Dean Earley (dean.earley@icode.co.uk)
    Assistant Developer

    iCode Systems



  2. #2
    Mark Alexander Bertenshaw Guest

    Re: Creatable Class


    "Dean Earley" <dean.earley@icode.co.uk> wrote:
    >How would I make a class, so I can do this ...
    >
    >Dim X As StringEx
    >X="hello"
    >
    >without a Set X = New StringEx


    What's the intention here? To save you a single line of code? Oh, I see
    - you want a String replacement, so you don't have to change any code. Unfortunately
    for you, you will have to declare this:

    Dim X As New StringEx.

    And you presumably are already setting your String property (or whatever
    you call it) as the default property?

    >I read somewhere to set a property of the class, but I only have two Data....

    properties

    Sorry - this doesn't make any sense.

    >
    >Any ideas?
    >--
    >Dean Earley (dean.earley@icode.co.uk)
    >Assistant Developer
    >
    >iCode Systems


    -------------------------
    Mark Alexander Bertenshaw
    Programmer/Analyst
    Chordiant Software, Inc.
    Brentford
    UK


  3. #3
    Dean Earley Guest

    Re: Creatable Class

    Doesn't matter now. I've got my lines crossed.

    The Instancing and Public Properties. They only apply to ActiveX stuff.
    --
    Dean Earley (dean.earley@icode.co.uk)
    Assistant Developer

    iCode Systems
    "Mark Alexander Bertenshaw" <mark.bertenshaw@virgin.net> wrote in message news:3ad57913$1@news.devx.com...
    >
    > "Dean Earley" <dean.earley@icode.co.uk> wrote:
    > >How would I make a class, so I can do this ...
    > >
    > >Dim X As StringEx
    > >X="hello"
    > >
    > >without a Set X = New StringEx

    >
    > What's the intention here? To save you a single line of code? Oh, I see
    > - you want a String replacement, so you don't have to change any code. Unfortunately
    > for you, you will have to declare this:
    >
    > Dim X As New StringEx.
    >
    > And you presumably are already setting your String property (or whatever
    > you call it) as the default property?
    >
    > >I read somewhere to set a property of the class, but I only have two Data....

    > properties
    >
    > Sorry - this doesn't make any sense.
    >
    > >
    > >Any ideas?
    > >--
    > >Dean Earley (dean.earley@icode.co.uk)
    > >Assistant Developer
    > >
    > >iCode Systems

    >
    > -------------------------
    > Mark Alexander Bertenshaw
    > Programmer/Analyst
    > Chordiant Software, Inc.
    > Brentford
    > UK
    >




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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center