Re: [lazarus] Not quite sure about if then construction

2006-06-06 Thread Tomas Gregorovic

John Meyer napsal(a):


if i_Error  0 then
begin
d_SalesTax := 0;
end;


- you should remove the semicolon (;) after end keyword


 else  ---line that is giving me the error
 if d_SalesTax  0 then
 begin
d_SalesTax := d_SalesTax / 100
 end;

it's giving me an error unit1.pas(49,6) Fatal: Syntax error, ; 
expected but ELSE found


Tombo

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Not quite sure about if then construction

2006-05-27 Thread John Meyer

if i_Error  0 then
begin
d_SalesTax := 0;
end;
 else  ---line that is giving me the error
 if d_SalesTax  0 then
 begin
d_SalesTax := d_SalesTax / 100
 end;

it's giving me an error unit1.pas(49,6) Fatal: Syntax error, ; 
expected but ELSE found


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives