By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,850 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

Detecting if pointer has been initialized

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
What is the reference type ?

--

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

Time flies when you don't know what you're doing

"Andre Arpin" <ar***@kingston.net> wrote in message
news:10*************@corp.supernews.com...
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

Nov 20 '05 #2

P: n/a
>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?)
Nov 20 '05 #3

P: n/a
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

"BluDog" <ne**@nospam.bludog.net> wrote in message
news:9d********************************@4ax.com...
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?)

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.