>Is there a function to return all environment variables?
I don't know of any built-in VFP function that can do this.
You might run the external command:
set > output.txt
and parse the result.
Or perhaps there is a WSH or API solution, but I don't know those areas very well.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)