I don't know the MereMortals framework cregistry class but it should be easy enough to find the equivalent method calls, assuming they exist. All you're doing is testing to see if a key is present and if so retrieve its value. Does that help?
FWIW I think the original code I posted would work in a distributed app as well. But of course it uses the FFC registry class either way, so the Registry.VCX class library would need to be included when the EXE is built.
You might post back your revised code for using the MM cregistry class when you've got it. Others would probably be interested in seeing how to do that, too.
>>>Will this code work in exe version? E.g. when you don't have VFP installed?
>>
>>For use in a distributed app I'd add Registry.VCX to the project and then replace the reference to HOME(1) + "FFC\Registry.VCX" with
SET CLASSLIB TO Registry.VCX ADDITIVE
>>loReg = NewObject( "Registry", "Registry.VCX")
>
>Thanks, Rick. I was a bit afraid of that. Now I would need to let our developers know what I've added a new library to the project...
>
>I did a quick search in the project and found cregistry class in MereMortals. However, it doesn't have the same methods and now I have to translate...
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.