Dynamic Object Creation
I have a need to create a number of objects on the screen dynamically, based on data in a table, something like the following where the descriptions are cWebLabels and the buttons cWebButton.
Description Description Button
Description Description Button
Description Description Button
I created classes for each and put a loop on the page where I wanted them to occur and if I create 1 row it works, but the second row comes up with a naming convention error, shown below.
Code:
For iCounter from 0 to 2
Get create U_cTimeLabel to hoObj
// Get create U_cDescriptionLabel to hoObj
// Get create U_cBookButton to hoObj
Loop
Two questions
1. Is there a better way to do this?
2. If not, why the naming error or how do I get around it?
Bob Worsley
203-249-2633
rlworsley at gmail.com
Do or do not. There is no try. — Yoda