Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Get Box Shape (Read 1500 times)
asloan
YaBB Newbies
*
Offline



Posts: 35
Joined: Mar 6th, 2006
Get Box Shape
Feb 1st, 2007 at 7:26pm
Print Post  
Why do I get an "Object variable or With block variable not set" error when this line of code executes?

If bx.Shape.ShapeId = "OffpageReference" Then
    ....

bx is a box and it's not "Nothing"

Is there another way to get the shape of a box?

Thanks,
Alan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Get Box Shape
Reply #1 - Feb 2nd, 2007 at 5:56am
Print Post  
Box.Shape if valid only when the Box.Style is set to bsShape. Maybe you should check whether the Style is bsShape before accessing the Shape.ShapeId.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint