dctara
asked on
How to Change the value of a Formula of the Report from Delphi
Error:502 Invalid Text or Object Handle
Formulas.SetIndex(1) <PEGetHandleString-Formula Name>
I got the said error when i tried changing the value of my formula from Delphi 7.(Note that I'm using CRW 9.2.2, Delphi 7 and correct VCL).
Crpe1 is from TRCrpe, then i added the ff code in Delphi:
Crpe1.FormulaByName('Formu la1').Form ula.Text := 'Test';
That line caused the above error to appear. I tried executing Formulas.Count in delphi and was able to get the correct number of formulas in my report. I even tried to get the value of Formulas.IndexOf('Formula1 '), and was able to get a value for this.
Pls help. Thanks.
Formulas.SetIndex(1) <PEGetHandleString-Formula
I got the said error when i tried changing the value of my formula from Delphi 7.(Note that I'm using CRW 9.2.2, Delphi 7 and correct VCL).
Crpe1 is from TRCrpe, then i added the ff code in Delphi:
Crpe1.FormulaByName('Formu
That line caused the above error to appear. I tried executing Formulas.Count in delphi and was able to get the correct number of formulas in my report. I even tried to get the value of Formulas.IndexOf('Formula1
Pls help. Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.