Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Rave: Event-Editor --> Error #36 - CalcStack has 2 Items ?! (https://www.delphipraxis.net/54185-rave-event-editor-error-36-calcstack-has-2-items.html)

Glühwürmchen 29. Sep 2005 10:56


Rave: Event-Editor --> Error #36 - CalcStack has 2 Items
 
Delphi-Quellcode:
function DataText22_OnGetText(Self: TRaveDataText; var Value: string);
var
  sTempText : String;
  iTextLaenge : Integer;
  i : Integer;
begin
  iTextLaenge := length(Value);
  i := 1;
  sTempText := '';

  while (i <= iTextLaenge) and (Value[i] <> '$') do begin <-- Error :wall:
    sTempText := sTempText + Value[i];
    i := i + 1;
  end while;

  if sTempText = '' then
    Value := '';
  else begin
    i := 1;
    sTempText := '';

    while i <= iTextLaenge do begin
      if Value[i] = '$' then
        Value[i] := '';
      end if;
    end while;
  end if;
end OnGetText;
Was will der nur von mir? :kotz:

merlin17 24. Okt 2005 10:35

Re: Rave: Event-Editor --> Error #36 - CalcStack has 2 It
 
In Rave geht nur ein Ausdruck....


Zitat:

while (i <= iTextLaenge) and (Value[i] <> '$') do begin
Delphi-Quellcode:
while i <= iTextLaenge do
    sTempText := sTempText ;
    i := i + 1;
  end;
ohne begin und ohne "end while"

Scripting Syntax guide
Delphi-Quellcode:

If statement

if condition then
statement(s);
elseif condition then
statement(s);
else
statement(s);
end;

For loop

for index := start to finish do
statement(s);
end;

for index := start downto finish do
statement(s);
end;

While loop

while condition do
statement(s);
end;

Repeat loop

repeat
statement(s);
until condition;
With statement
with object do
statement(s);
end;
Break, Continue and Exit function similar to Delphi.


:-) thomas


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:07 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz