|
-
Jan 29th, 2006, 10:45 PM
#1
Thread Starter
Fanatic Member
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
-
Feb 1st, 2006, 06:30 AM
#2
Re: Variable+Variable1=Variable
Nope...
Have any examples?
-
Feb 1st, 2006, 09:15 AM
#3
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.
-
Feb 1st, 2006, 02:19 PM
#4
Hyperactive Member
Re: Variable+Variable1=Variable
 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
-
Feb 1st, 2006, 04:15 PM
#5
Thread Starter
Fanatic Member
Re: Variable+Variable1=Variable
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|