Jim,
Any memvar created in the command window like that is public scope.
Although try this for fun:
clear all
private x1
disp memo like * && nothing
local x2
disp memo like * && local
x2 = 123
local oapp
=modstart(.t.) && oapp inside modstart comes and goes
x3 = "test"
disp memo like *
* ModStart.prg
LPARAMETERS plDevMode
IF ! plDevMode
PRIVATE oApp
ENDIF
oApp = CreateObject("form")
oApp.Visible = .t.
IF NOT plDevMode
READ EVENTS
ENDIF
This actually gives us local memvars scoped to the command window!
>You are correct, and just for fun run DISP MEMO and tell me what the scope for oApp is after you do that?