>>> What object WITH is referring to in this case? Are you sure that it's the line that generates the error?
>
>The object is recieved as a paramater into the method, I have stepped through and the object is definetely available, fuller code is
>
>
>WITH toObject
> IF PEMSTATUS(m.toObject,"Width",5)
> .ADDPROPERTY( '_nOriginalWidth', .WIDTH )
> ENDIF
>ENDWITH
>
>
>Gary.
Try to use the full object reference here, sometimes there are strange unexplainable errors like this when using WITH/ENDWITH construct.
As I recall, I had the similar issue back then.
If it's not broken, fix it until it is.
My Blog