PDA

Click to See Complete Forum and Search --> : Using subs inside ActiveX Control


programmer
Nov 24th, 2000, 06:58 AM
Hi,
Im new to ActiveX Programming,
and I would like to know the following thing:
If I have a private sub inside my ActiveX Control project, lets say somthing like this:

private sub DrawLine (lineType as Interger)
end sub

I want to add a property that evetually will raise itself to the LineType interger.

So when the user calls the method for drawing the line,
my ActiveX control will call the private sub DrawLine.


How can this be done??

Thanks!

tumblingdown
Nov 24th, 2000, 08:07 AM
i'm not following your question.

You have a private method that you wish to call from a public method - is this what you want to do?


td.

agent
Nov 24th, 2000, 11:50 PM
When the property is set in the activex control, set a variable to the new value. When your ready to call the private sub, just pass the variable to it as the argument.



Public Property Let Blank(newValue as Integer)
...
m_Blank = newvalue
...
End Property

Public Sub DrawIt()
...
Call DrawLine(m_Blank)
...
End Sub


tumblingdown A single can of diet ANYTHING can be deadly!