Dave,
If you run the code JimB posted as a .prg when it's done there won't be an oX left if you do a DISPLAY MEMORY. Because it'll be a private memvar for that routine. Usually in VFP you'd declare it LOCAL if it was only to be seen by that chunk of code.
If you type those line in the command window there will be a public oX left over at the end because of the way the command window works.