>Is there a way to view all the Init methods for all objects in a form? Trying to locate the source of a behaviour and believe that the cause is within the Init of some object. I know I can browse all the method code for the records in the scx, but I was hoping for something that just gave me the method I was interested in. Thanks!
>
>Regards, Renoir
Since the methods fields puts the methods in with PROCEDURE..ENDPROC, and always with the same case (mixed for native methods, lower for custom), you could do something like this...
Use myform.vcx
Scan For "PROCEDURE Init" $ methods
If Found()
lcProc = Substr(methods, At("PROCEDURE Init", methods))
lcProc = Left(lcProc, At("ENDPROC", lcProc)+7)
lcObject = Alltrim(objname)
If !Empty(parent)
lcObject = Alltrim(parent)+"."+lcObject
EndIf
EndIf
EndScan
You'll need to adjust it for contained objects that have init's in the form. They'll look like
PROCEDURE cntContainer.txtContained.Init...
Insanity: Doing the same thing over and over and expecting different results.