Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I release those objects?
Message
De
28/05/2014 10:58:42
 
 
À
27/05/2014 16:02:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
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:
01600733
Message ID:
01600790
Vues:
59
>I created objects dynamically and before releasing the form I want to delete those objects.
>
>I thought the following would work but it didn't
>
>
>FOR nI = 1 TO thisform.nTotOnScreen
>	cNameObjet = 'cmdIdPersonn' + RIGHT( '000' + ALLTRIM( STR( nI)),4)
>	cObjet = 'thisform.' + cNameObjet
>	&cObjet = .null.
>	RELEASE &cObjet
>ENDFOR 
>
>
>How should I proceed?

Here is the essence of the code I use:
with thisform

	for each loO in .objects

		.removeobject( m.loO.name )
	next
endwith
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform