I have an application that uses Rave Reports.
After upgrading from Delphi 2006 to Delphi 2010 some scripts stopped working and gives an Access violation message
I have a script that looks like this:
OnGetText:
IF (ddvDetailTaxidEventType.AsInteger = 1) THEN
Value := 'TEST ' + ddvDetailTaxidEventType.AsString ;
ELSE
Value := 'TEST ';
END IF;
This script works in Rave 6.5BE(D2006) but not Ra开发者_开发技巧ve 7.7BE (D2010)
Note:
Command : Value := 'TEST ' + ddvDetailTaxidEventType.AsString ;
works without the If and EndIf statements.
Command : Value := 'TEST ';
works without the If and EndIf statements.
Command : if (ddvDetailTaxidEventType.AsInteger = 1) THEN
Gives the Access violation message
Command : if (ddvDetailTaxidEventType.AsString = ‘1’) THEN
Gives the Access violation message
I just don’t see where I am going wrong…
please help.
Method AsInteger causes application's AV in rave 7.7. (AsString works fine)
replace it with: if (ddvDetailTaxidEventType.AsString = '1') then
https://forums.codegear.com/thread.jspa?threadID=31157&tstart=0
精彩评论