Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make name of Define Window local?
Message
De
05/03/2015 03:18:21
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01616221
Message ID:
01616261
Vues:
32
>Hi,
>
>When I use the code DEFINE WINDOW myWindow, after I am done with using this window I call RELEASE WINDOW myWindow.
>
>If I were to declare this variable (e.g. myWindow) LOCAL, before defining the window, do I still need to RELEASE it?

That's only the string with the window name. You may need to play with DEFINE WINDOW myWindow NAME oWindow to get an object reference, which may be local if you declare it so.
Now whether the window will vanish when oWindow is destroyed, I don't know, but since it's a form anyway, you can just say oWindow.release().

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform