General information
Category:
Coding, syntax & commands
I had more or less the same problem: in one baseclass form I had references to all grids, to automate cascading updates/deletes, reference to the first control in the form and so on. After a while the form became much too complex for maintenance. I have solved the problem by storing the full name of the objects I want to reference to variables or arrays and then working with the objects using eval() ie:
ThisForm.ReferencedGrid = "ThisForm.Pgf.Page1.Grd1"
with eval(ThisForm.ReferencedGrid)
.SetFocus()
for n = 1 to .ColumnCount
...
...
next
endwith
HTH
Previous
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