When promoting a window to a parent application using the repository TCOPY method, I get a REP120 error returned on one event. Presumably this is the last event it tries to move. The window seems to be copied successfully and runs well enough in the destination app. However, I notice that the USES fields are not filled in on the OIWIN and OIWINEXE repository entries. Is there a fix for this in the works for 7.1, or should I put together a work-around?
Wayne
Wayne-
We haven't touched the TCOPY method at all.
Have you looked at the CopyForm utility, found elsewhere on the website?
Mike
Thanks, this was a big help, although I noticed a line of code seems to be missing in the program. In the subroutine ParseCtrl, there should be a
convert @svm:@tm to @fm:@vm in QInfobefore QInfo is loaded back into Ctrl. You might want to update the zip file so future users don't run into this.
Thanks,
Wayne
Oops! Almost forgot another change I had to make. Since the repository GET method returns the inherited entity if the object requested does not exist, simply calling GET is not a valid test of whether the copy will overwrite an object in the registry. I had to add a test to see if the app of the object returned was the same as the app of the object requested to determine whether or not to prompt about overwriting.
Maybe the author has a different concept of what overwriting means viz-a-viz the hierarchy, but I'm only concered about actually destroying objects by mistake.