![]() |
Rave Zugriffsverletzung
Hallo,
ich stelle gerade ein Projekt von D2007 auf 2010 um. Dabei kommt der RaveReport (früher 7.5 jetzt 7.7) zum Einsatz. In einem Script tritt jetzt ein Fehler auf, der unter RR 7.5 nicht aufgetreten ist.
Delphi-Quellcode:
In der letzten Zeile tritt der Fehler auf und zwar immer dann, wenn ich versuche zwergStr einen Wert zuzuweisen. Die Anweisung lautet
{ Event for txtMin.OnBeforePrint }
function txtMin_OnBeforePrint(Self: TRaveText); var mins, stLohn, zwerg, gesamt : Extended; minInt : Integer; zwergStr : String; gesStr : String; begin mins := (DataView1Bis.AsFloat - DataView1Von.AsFloat)*24*60; if (Frac(mins) = 0) then minInt := Trunc(mins); else minInt := Trunc(mins)+1; end; if minInt mod 10 <> 0 then minInt := (minInt div 10) +1; else minInt := minInt div 10; end; stLohn := StrToFloat(RaveProject.GetParam('Lohn'))/6; Self.Text := FormatFloat('#,###.00 €', minInt*stLohn); {zwergStr := IntToStr(0);} {RaveProject.GetParam('PosValue');
Delphi-Quellcode:
Zunächst hatte ich vermutet, dass es an dem Parameter liegt und deshalb als Wert für zwergStr auch 'test' oder wie oben IntToStr(0) versucht. Aber immer läuft es auf eine Zugriffsverletzung hinaus.
zwergStr := RaveProject.GetParam('PosValue');
Eine Nebenfrage habe ich auch noch: Hat noch jemand Problem, dass beim Aufruf von Help | Content auch eine Zugriffsverletzung schon im Designer auftritt? |
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:33 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz