Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT ;
CAST(class as Character(25)) as cType, ;
CAST(SUBSTR(properties, AT('Caption', properties) + 11, AT('"', properties, 2) - AT('"', properties) -1) as character(50)) ;
AS cCaption ;
FROM SomeForm.SCX ;
WHERE INLIST(baseclass, 'label', 'commandbutton', 'checkbox')
*CD (...insert your forms directory here...)
Modify Form someform.scx nowait
Local loForm
ASelObj(aForm,1)
loForm = aForm[1]
ListCaptions(loForm)
Procedure ListCaptions(toObject)
Local loControl
? toObject.name
For Each loControl in toObject.Objects FoxObject
If PemStatus(loControl,'Caption',5)
? '"'+GetPem( loControl,'Caption')+'" is the caption of '+loControl.Name+', which is an object of the class '+loControl.Class
* at this line you may fill a cursor with the values loControl.Caption, loControl.Name, loControl.Class, and whatever else of the control object interests you in the result
EndIf
If PemStatus(loControl,'Objects',5)
ListCaptions(loControl)
EndIf
EndFor
EndProc