Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Release Object problem
Message
De
07/09/2005 16:41:03
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
07/09/2005 14:00:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01004179
Message ID:
01047503
Vues:
17
>Hi,
>
>I had done a work around but went back to try your suggestion but I can still see the object that I Remove. This is my code:
>
>Thisform.grid.column1.ControlSource = "curTest.lSelected"
>IF TYPE('Thisform.grid.column1.text1') = 'O'
> Thisform.grid.column1.AddObject('chklSelected','acc_checkbox')
> Thisform.grid.column1.chklSelected.Visible = .T.
> Thisform.grid.column1.CurrentControl = 'chklSelected'
> Thisform.grid.column1.RemoveObject('text1')
> Thisform.grid.column1.Sparse = .F.
>ENDIF
>
>In the debugger TYPE('.column1.text1') is showing 'O' after this code runs.
>
>Any ideas?

Not really. Where's this code? I'm doing mine in grid's .init(), before setting the grid visible. That may matter, or it may not. I think the moment the grid becomes visible it gets a .text1 into every column it has.

Also, if your column is a subclass of (or instantiated from a class) a column which has a .text1, it may refuse to remove a class's member.

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