Detecting if pointer has been initialized

  • Thread starter Thread starter Andre Arpin
  • Start date Start date
A

Andre Arpin

I am trying to check if a pointer has been initialized using the following
code but it does not work I would appreciate any suggestion.
Thanks in advance
Andre

If Not (Me.AxPolyCtl2 Is Nothing) Then

Me.AxPolyCtl2.sides = NumberOfSides.Text()

End If

-----------------------------------------------------------------

defined as:

Friend WithEvents AxPolyCtl2 As AxPOLYGONLib.AxPolyCtl

initalized as:

Me.AxPolyCtl2 = New AxPOLYGONLib.AxPolyCtl
 
What is the reference type ?

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing
 
If Not (Me.AxPolyCtl2 Is Nothing) Then
Me.AxPolyCtl2.sides = NumberOfSides.Text()

End If

Maybe AxPolyCtl2 has been initilized, but the Sides property has not
(is it a collection?)
 
I am sorry I have not come back earlier my computer was being serviced.
The test is correct the problem was that the activex was being accessed
before it was active.
This is my first basic program and I did not realized that this possible.

Andre
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top