Results 1 to 5 of 5

Thread: Variable+Variable1=Variable

  1. #1

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Variable+Variable1=Variable

    Is there a better way and or faster way to do this. I know it sounds simple, but i have seen "propertys" i think that people use to modify variables

    does anybody know what i am saying?
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Variable+Variable1=Variable

    Nope...

    Have any examples?

  3. #3
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: Variable+Variable1=Variable

    You mean:

    Code:
    Public Property Get Backcolor() As OLE_COLOR
        Backcolor = m_Backcolor
    End Property
    Public Property Let Backcolor(ByVal NewValue As OLE_COLOR)
        m_Backcolor = Backcolor
        Refresh
    End Property
    If so, there is no better or faster way.

  4. #4
    Hyperactive Member Maven's Avatar
    Join Date
    Feb 2003
    Location
    Greeneville, TN
    Posts
    322

    Re: Variable+Variable1=Variable

    Quote Originally Posted by Merri
    You mean:

    Code:
    Public Property Get Backcolor() As OLE_COLOR
        Backcolor = m_Backcolor
    End Property
    Public Property Let Backcolor(ByVal NewValue As OLE_COLOR)
        m_Backcolor = Backcolor
        Refresh
    End Property
    If so, there is no better or faster way.
    In theory you could just use a structure to send all the required information to a class in. It would tend to be faster, however, it exposes the structure to the client so it breaks the rule of encapsulation, which is usually a design goal of OOP.
    Education is an admirable thing, but it is well to remember from time to time that nothing that is worth knowing can be taught. - Oscar Wilde

  5. #5

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: Variable+Variable1=Variable

    Quote Originally Posted by Merri
    You mean:

    Code:
    Public Property Get Backcolor() As OLE_COLOR
        Backcolor = m_Backcolor
    End Property
    Public Property Let Backcolor(ByVal NewValue As OLE_COLOR)
        m_Backcolor = Backcolor
        Refresh
    End Property
    If so, there is no better or faster way.
    Yeah thanks, thats what I'm looking for.
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width