makes sense. Will try it.

  ----- Original Message ----- 
  From: Chip Orange 
  To: [email protected] 
  Sent: Saturday, December 11, 2010 7:12 PM
  Subject: RE: Quick Object Question


  Hi J.J.,

  I strongly suspect the parent is undefined, so I'd try:

  if not win.parent is nothing then

  to fix it.

  hth,

  Chip




------------------------------------------------------------------------------
  From: J.J. Meddaugh [mailto:[email protected]] 
  Sent: Saturday, December 11, 2010 7:02 PM
  To: [email protected]
  Subject: Quick Object Question


  I am getting error reports that this line
  if Win.Parent.Type = wtPropertySheet then

  gives an error "object doesn't support this property or method"

  Should I do
  if not Win.Parent.Type is nothing then

  to solve this

  If I'm on the right track, do I need both
  if not win is nothing and not Win.Parent.Type is nothing then

  or is that redundant?

  Finally, if I nest if statements like that, and the first one returns false, 
will it stop right there, thus making it safe to stack the if statements like 
this?
  Thanks as always.


Reply via email to