John Baird
Coatesville, Pennsylvania, United States
General information
Category:
Coding, syntax & commands
Title:
Help with RemoveObject
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?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only