Neil Rhodes wrote:
> > Ok as I said in my previous messages.. One of my forms will not work. This
> > is very frustrating. When I do the API calls mentioned below the program
> > crashes the first time I try to use the variable frmP. That is in
> > FrmGetObjectIndex.. When I step through with the metroworks debugger I end
> > up looking at a bunch of assembly code. When the program finnaly crashes so
> > that I can no longer debug, the function call is (0x4 or 0x8 Unknown) and I
> > can see in the debug window a messages that says "invalid opcode". Now the
> > code that is causing this works for all other forms, just not this form.
> Philip,
>
> When you say that:
> > I've looked at all the values of frmP after the FrmGetActiveForm(); call.
> > Everything seems to be OK. and objectID is also correct.
>
> does that mean you've looked at the objects field of the FormPtr,and
> actually seen your object with the correct objectID?
>
Yes.
>
> What kind of object is it?
>
It is just a regular button.
>
> What happens if you remove the other form objects in the form?
>
How would I do this easily without completely screwing up my form? I have like 12
buttons very carefully placed on the form and I would hate to remove them and
have to put them back on there. Do you mean remove all other objects or just
*some* objects? Thanks.
Philip J.
>
> Neil