Kaladin
2010-11-06 20:14:33
Okay so this is my first script and obviously im just finding my way around however this is one very minor problem thats annoying me.
Im using OpenBankFast(): which works fine, what I want to know is for log purposes how do I find out if it was sucessfull or not.
I tried a few different things guessing (As there is Boolean in the paramaters but I just don't know how to use it)
I assumed that would asssign a value of true to banksucess if it were sucessfull but my syntax is very wrong.
Any help would be much appreciated, sorry for asking so soon into the tutorials but it is bugging me.
Im using OpenBankFast(): which works fine, what I want to know is for log purposes how do I find out if it was sucessfull or not.
I tried a few different things guessing (As there is Boolean in the paramaters but I just don't know how to use it)
Procedure Bank;
Var
banksucess: boolean
begin
OpenBankFast('veb')banksucess;
If banksucess = True then
WriteLn('Bank sucessfully opened')
else
writeLn('Banking failed')
DepositAll;
end I assumed that would asssign a value of true to banksucess if it were sucessfull but my syntax is very wrong.
Any help would be much appreciated, sorry for asking so soon into the tutorials but it is bugging me.