Setting global variables

Setting global variables

Anonymous
Not applicable
174 Views
3 Replies
Message 1 of 4

Setting global variables

Anonymous
Not applicable
I have a bunch of subroutines in a AutoCad ThisDrawing object. I also have
a Form and a bunch of subroutines to handle clicks on command buttons, etc.
The problem I am having is that when a user clicks a button in the Form, I
want it to set a variable in the General declarations of the ThisDrawing
object. However, it's not doing it. Any suggestions??
0 Likes
175 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
If you declared the variable as Public, it shouldn't be a problem.

Regards

--
Guy Bursell
CAD Development Engineer
Mabey & Johnson Ltd.

Bill Major wrote in message
news:81gqo3$8s64@adesknews2.autodesk.com...
> I have a bunch of subroutines in a AutoCad ThisDrawing object. I also
have
> a Form and a bunch of subroutines to handle clicks on command buttons,
etc.
> The problem I am having is that when a user clicks a button in the Form, I
> want it to set a variable in the General declarations of the ThisDrawing
> object. However, it's not doing it. Any suggestions??
>
>
0 Likes
Message 3 of 4

Anonymous
Not applicable
Try the operation with the IDE window closed. I have seen that make a
difference.
Search the newsgroup for the thread "Global Variables?" (9/8/99) for more
information.

Hope this helps, 🙂

- Adam

Bill Major wrote in message
news:81gqo3$8s64@adesknews2.autodesk.com...
> I have a bunch of subroutines in a AutoCad ThisDrawing object. I also
have
> a Form and a bunch of subroutines to handle clicks on command buttons,
etc.
> The problem I am having is that when a user clicks a button in the Form, I
> want it to set a variable in the General declarations of the ThisDrawing
> object. However, it's not doing it. Any suggestions??
>
>
0 Likes
Message 4 of 4

Anonymous
Not applicable
I refer you to http://afralisp.hypermart.net/rr/anov2.htm

This is the November 2/99 edition of the A Code A Day newsletter,
talking about variable scope.

Bill Major wrote:
>
> I have a bunch of subroutines in a AutoCad ThisDrawing object. I also have
> a Form and a bunch of subroutines to handle clicks on command buttons, etc.
> The problem I am having is that when a user clicks a button in the Form, I
> want it to set a variable in the General declarations of the ThisDrawing
> object. However, it's not doing it. Any suggestions??
0 Likes