Hi,
I'm using a treetable object on my main form, which is linked to a table in which there is a field called DoCmd which I call using Execscript (in VFP7).
The procedure runs a SELECT that works fine. It then tries to run Mainform's NewObject method. This fires (I have a wait window in the method) but the object isn't added.
Here is the code I'm using:-
Both wait windows shown here report 27 controls in Mainform.
Any ideas where I am going wrong?
Thanks,
Stewart
I'm using a treetable object on my main form, which is linked to a table in which there is a field called DoCmd which I call using Execscript (in VFP7).
The procedure runs a SELECT that works fine. It then tries to run Mainform's NewObject method. This fires (I have a wait window in the method) but the object isn't added.
Here is the code I'm using:-
Code:
WITH Mainform
WAIT WIND TIME 3 "Mainform has " ;
+ ltrim(str(mainform.controlcount)) + " objects"
.Newobject("GrdBankings","_fgrid","febaukbase")
WAIT WIND TIME 3 "Mainform now has " ;
+ ltrim(str(mainform.controlcount)) + " objects"
Both wait windows shown here report 27 controls in Mainform.
Any ideas where I am going wrong?
Thanks,
Stewart