Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Screen resize code
Message
From
10/10/2006 04:04:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Screen resize code
Miscellaneous
Thread ID:
01160765
Message ID:
01160765
Views:
68
I have implemented screen resize code using http://fox.wikis.com/wc.dll?Wiki~ScreenResize

Here is the code:
_Screen.AddObject("oResizer", "Resizer")

DEFINE CLASS Resizer AS Custom
     oScreen = _Screen

     PROCEDURE oScreen.Resize
          WAIT window "Resizing" NOWAIT
     ENDPROC
ENDDEFINE
At the end of the program, this runs:
If Vartype(_Screen.oResizer) = 'O'
	_Screen.RemoveObject("oResizer")
Endif
It does run the RemoveObject line. However, if I BUILD the application again, it gives me this error:
File cannot be closed because outstanding references exist.
If I exit FoxPro, and restart, then BUILD works fine. Removing all the above, then BUILD works without a problem.

Any idea what I can try to avoid the outstanding references error?

Cyril
Next
Reply
Map
View

Click here to load this message in the networking platform