Suppose I need to dynamically create a series of objects and set their
properties at run-time. What is the syntax I would use.
For example lets suppose that under certain conditions that might occur
while I'm scanning a database, I would like to create a label on a form and
set its properties. For
convenience (and uniqueness) I'm going to name the objects based on the
record number in the database. Please help me filling what I'm missing:
SCAN
IF <condition occurs>
obname = alltrim(str(recno()))
thisform.addobject(obname, "Label")
* here is the part that I don't know the syntax for
* I need to set the top, left, width, and caption of this label that
was just created.
* the name of the object is contained in a variable
* a "c like" approach would be something like thisform->obname.top =
5 but I doubt that is correct
ENDIF
ENDSCAN
Thanks in advance
Jeff