How to Display Current Control Properties at Run TimeID: Q131622 3.00 WINDOWS The information in this article applies to:
SUMMARYWhile the property sheet is available for controls during design time, Visual FoxPro does not provide a direct way to display the current values of an active control during run time. You can place a maximum of sixteen entries in the Debug Window, but this has limited application. Insert the code listed in this article in an appropriate method to display a list of the current properties and their values in a scrollable window.
MORE INFORMATIONFor the following code sample to function as intended, the following conditions must be true:
When you run the code, the currently active form is minimized and the property list window activated. Once the desired status is determined, close the property list window to return the form to its normal state.
Code Sample* Property list display code LOCAL lnCnt SET SAFETY OFF
SET TEXTMERGE TO objsho
SET SAFETY ON
SET TEXTMERGE ON NOSHOW
THISFORM.WINDOWSTATE=1
FOR nI = 1 TO lnCnt
ENDFOR
SET TEXTMERGE OFF
SET TEXTMERGE TO
DEFINE WINDOW shobj AT 0,0 SIZE WROW()-12,WCOL()/2.5 ;
MODIFY FILE objsho NOMODIFY WINDOW shobj
RELEASE WINDOW shobj
THISFORM.WINDOWSTATE=0
* End of code
Additional reference words: 3.00 VFoxWin KBCategory: KBSubcategory: FxtoolFormdes
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |