At 12:13 2013-09-18, "Tracy Pearson" <[email protected]> wrote:
Gene,
When you want a visual object to be added to a container at runtime, and be
seen by the end user, you need to use the ADDOBJECT() method of the
container. The normal containers we think of are Form, Container, and Page
(in a pageframe). There are more, but those are the ones you would be
thinking about regarding a grid.
Ouch! It has been so long since I have had to use .addobject()
instead of my framework (such as it is) that I was mistakenly using
createobject(). .addobject() did not work, but with the addition of
a .visible=.t. for the grid, I got it to work.
A few other mistakes, and I was having trouble.
1) Do not redefine a method after a method and have no code in
it. It will appear that the method is being ignored and yet there
will be no error. (VFP really should complain about the redefinition
when compiling.)
2) When debugging and deciding to recompile with the program still
running, the result of the compile command will be to cancel the
program but not recompile. If you then try running the program, the
debugger will then complain "Source code is out of date". I thought
I had recompiled.
Now that I have something that sort-of works, I can try refining.
Thank you for the help.
Sincerely,
Gene Wirchenko
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.