Mark,
A variable created in the Commadn Widnow is PUBLIC in scope so it does not go out of scope. However, when you execute multiple lines from the command window, Fox makes a prg and runs that. In a PRG variables are Private by default anbd they go out of scope when the PRG ends.