>
>Is there a slight chance of failing in creating an object?
>I doubt, I would ever write it this way myself, but I sometimes too defensive :)
>>
>You can explain the difference between a) and b),
>I do not see the impediment :
>A)
>
>myRef=CREATEOBJECT(...)
>WITH M.myRef
>..
>
>
>B)
>
>WITH CREATEOBJECT(...)
>...
>
>
>I must capture the error and resolve it in both cases.
You can check myRef for vartype.
If it's not broken, fix it until it is.
My Blog