Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with RemoveObject
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00215737
Message ID:
00215741
Vues:
28
>>WITH thisform.grdCatalog
>> .ColumnCount= 9
>> FOR lnI = 1 TO .ColumnCount
>> lcRemoveObject = '.column' + ALLTRIM(STR(lnI)) + '.text1'
>> .RemoveObject(lcRemoveObject)
>> lcAddObject = '.column' + ALLTRIM(STR(lnI)) + '.txtbase1'
>> .AddObject(lcAddOjbect, 'txtBase')
>>ENDFOR
>>
>>I am trying to execute the above code and keep getting an error message on the remove object line. It says that '.Column1.text1' is not an object.
>>
>>What am I doing wrong? How do you remove one object and insert another?
>
>I think you need:
>
>loRemoveObject = eval(lcRemoveObject)
>.RemoveObject(loRemoveObject)
>
>because lcRemoveObject is just a character string at this point instead of an object.

correction to first post in bold above.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform