>How about this: consider the problem to be that of creating a generic UDF to update a given registry entry with a specified REG_DWORD type of value. A complementary UDF to retrieve a given REG_DWORD value would also be useful.
The code to do this was written and posted several years ago. Search support.microsoft.com for "reg_dword" and "foxpro".
Mike Stewart