Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: Grid
Miscellaneous
Thread ID:
00310213
Message ID:
00311065
Views:
34
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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform