Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close Form
Message
 
 
À
25/10/2001 08:02:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00573094
Message ID:
00573114
Vues:
24
Hi!

It does not work in EXE because VFP do NOT create the variable with the same name as a form name. This variable is create only for debugging purposes to allow you quickly see all properties and objects of the form in the "locals" debugging window.

In the applications you can use following:
for i=1 to _Screen.FormCount
  if _Screen.Forms(i).Name = "MyFormName" && find a form with the name we need
    _Screen.Forms(i).Release
    exit && we found required form - no need to go further in a loop
  endif
endfor
HTH.

>Hello ppl,
>I need to know who can i close a form being in another, Ex. I open the Form XPTO and the form YPTO and then a click in a button in form YPTO that close the XPTO, now i do this in FoxPro object.release(), but in a compiled EXE dont wotr , Why.
>Thanks,
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform