Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Re: Grid
Divers
Thread ID:
00310213
Message ID:
00311065
Vues:
33
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform