As described on the help page, the
pause statement requires a parameter. In Panorama X the parameter isn’t actually used for anything, but it is retained for compatibility with old code. You can just use
"" as the parameter. It would also take
resume as the parameter, but it would in that case think that
resume was a variable name. It could also just as easily take
zorgatron as the parameter, or
x+y/z. Any legal formula will work.
Here is a revised version of your code that should work. I have also rewritten this code to eliminate the
zoomwindow statement, taking advantage of the new features of
openform in Panorama X. This eliminates the possibility of the user seeing the window jump around as it opens.
if OwnerPIC = ""
resume statement would NEVER be in the same block with
pause, or even in the same procedure. It needs to be in a separate procedure that is triggered by some user action, usually a button. In Panorama X usually the
resume statement is simply embedded into the button code.
pause statement, the
resume statement has a vestigial parameter that no longer does anything, but is still required as a placeholder. I usually just use
"" for this parameter.