>Procedure ?? > lcTalk = Set('Talk') > Set Talk Off > ......... > Set Talk &lcTalk >EndProc >>Is there a reason people don't use a class to save & restore settings
>Procedure ?? > loTalk = CreateObject('Save_Talk') > ..... >EndProc && Local variables go out of scope forcing destroy() >Define Class Save_Talk as Custom > cTalk = Set('Talk') > Procedure Init() > Set Talk off > EndProc > Procedure Destroy() > && Set Talk This.&cTalk - this would not work if this.cTalk = 'ON' set talk on else set talk off endif > EndProc >EndDefine >