SRL Archive - OSR Help

List of bold words?


almost

2007-03-12 11:00:08

Does anyone have a list of bold words used in scar and what they do?
There are a few of them i dont understand like "try".

c0de

2007-03-12 14:41:03

http://www2.toki.or.id/fpcdoc/ref/refse56.html#x131-13700011.2

Ron

2007-03-12 16:16:19

Here is a good one for try.

program TryExampleByRon;

const
numbers = '123a';

begin
ClearDebug;
try // Try this code
if(StrToInt(Numbers) <> 0)then
WriteLn('Numbers is greater than or less than 0!');
finally // This code will run if there is an error in try code or not.
WriteLn('Finally! the script is over!');
except // If the above code doesn't work, then run this code.
WriteLn('Please insert only numbers into the string, numbers!');
end; // end the try/except thing.
end.

~Ron :)

bullzeye95

2007-03-12 17:33:37

Yeah, it's for catching errors that would normally make the script stop, and tell it to do something else instead.

almost

2007-03-13 09:52:46

That helped a lot but does anyone have a list of them all? I though of a few more like "div".