Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RemoveObject
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01655998
Message ID:
01656004
Vues:
79
Thank you Martina
there is a small typo in your code
with thisform
For m.lii=.ControlCount TO 1 STEP -1
     m.loObj=.Controls(m.lii)
    =IIf(Lower(loObj.Class)=="ycnt",.RemoveObject(loObj.Name),.T.)
Next
endwith
When use the [for i=1 to .controlcount]......i put a structure try/catch/endtry for avoiding error (there is always error) !
you used [for i=.controlcount to 1 step -1] maybe have a real signification ? Is vfp stores containers by the last created ? there is a memory lost when using the other syntaxes?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform