>I need to dynamically resolve the name.
>
>I look for the new SCCTextX.prg from VFPx first, and if it's present I use it, and if not, I default to original SCCText.prg
>
>
>
>lcSCCText = Home(1) + 'SCCTextX.prg'
>
>If !File(lcSCCText)
> lcSCCText = Home(1) + 'SCCText.prg'
>EndIf
>
>lcFile = 'C:\MyCode\MyForm.scx'
>
>lnReturn = &lcSCCText(lcFile)
>
>
>
You need to use a function name, not the file name. SET PROCEDURE TO (m.lcSCCText)
lnReturn = FuncName(m.lcFile)
where FuncName is the name of the function to get text of the file.
Although in this case I don't see how can you apply this as the SCCText program is not a function.
Also, the parameters are these
parameters cTableName, cType, cTextName, lGenText
If it's not broken, fix it until it is.
My Blog