General information
Category:
Forms & Form designer
Title:
How disappointed I am .
*- the following codes try to add property and method for a command button
aSelObj(aArray)
o=aArray(1) && store a reference of a command button in form designer
o.AddProperty('test_p','1')
o.WriteMethod('test_m',"? ok ",.t.) &&the .t. means create new method
Ok, it seems ok, the property inspect window shows what i had added,
the new property and the new method. Then open the scx file by a use,
what i add is there.
Great, i think i can write a short routine to add properties and
methods for objects containing in a form on design time. My code will
be more good...
But....
When i run the form, only the new method of command button can be access,
the property missed.
And after serveral time of open the form in designer, the two gone !
Mr. Ken Levy, do please add this feather in toledo.
AND, anybody can tell me how to hack in the fox to accomplish that in vfp7 ?
TIA.
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