SET RESOURCE OFF USE foxuser && might need a path * create an empty resource file COPY STRUCTURE TO myresource USE * now make it current SET RESOURCE TO myresource SET RESOURCE ON GETEXPR TO x * set the options the way you want them SET RESOURCE OFF SET RESOURCE TO WhatEverItWasBefore2) now you have a "myresource" table with 1 record for the options you have set, and you can substitute that table at the proper place in your code to turn on those options.
* save existing state of resource file cOldResource = SET("RESOURCE",1) lWasOn = ( SET("RESOURCE")="ON" ) SET RESOURCE TO myresource SET RESOURCE ON GETEXPR TO x * now put it back as before SET RESOURCE TO (cOldResource) IF NOT lWasOn SET RESOURCE OFF ENDIF