>I have a function "ConvMacros" in my procedure library. This function used to be a form method, but now I need to use it from multiple forms so I've moved it into my ProcLib.prg file.
>
>How can I reference a property of the active form?
>
>I.E.
>
>
>IF THISFORM.OfferCredit
> * do something
>ELSE
> * do something else
>ENDIF
>
>
>TIA
Best would be to pass an object reference to the call:
*...in method code
abcd=MyProcUDF(thisform,
...other parms)
*
*
FUNCTION MyProcUDF
LPARAMETER toFormRef,
...yadda, yadda, yaddaIF toFormRef.OfferCredit