Can somone get me a list of all the key words
and what they do please!!!
Example:
Try, Begin, end ,repeat, shr, shl, case, of
those are all key words but i want all of them
![]()
Can somone get me a list of all the key words
and what they do please!!!
Example:
Try, Begin, end ,repeat, shr, shl, case, of
those are all key words but i want all of them
![]()
umm theres alot...
begin
end
end;
end.
repeat
procedure
until
case
of
and
shl
shr
do
to
try
downto
for
program
in
string
thats all i know![]()
dang i know all those and more![]()
all well..................
There are more, but these are the most important (and most of the others, if not all, don't work properly or not at all):
and
array
begin
case
const
div
do
downto
else
end
except
exit
finally
for
forward
function
goto
if
label
mod
nil
not
of
or
procedure
program
record
repeat
shl
shr
then
to
try
type
until
var
while
with
xor
And btw, string isn't a keyword, it's a type
Here's some:
and array begin case const div do downto else end file for forward function goto if in label mod nil not of or packed procedure program record repeat set then to type until var while with
EDIT: Damn freddy, you posted before I had time to finish writing mine, while I was still writing. Oh well, too late, can't delete this useless one now XD.
It's been a while... but I'm BACK!!!



Wrong time to ask this, but what does Forward do? I could never figure that out![]()
Just wondering...but why is there a Cardinal type in scar?
Interested in C# and Electrical Engineering? This might interest you.
forward changes the order of the compilation
this gives an error
SCAR Code:procedure Hello;
begin
writeln(GetMessage);
end;
function GetMessage:string;
begin
result:= 'Hello';
end
but this doesnt
SCAR Code:function GetMessage:string; forward;
procedure Hello;
begin
writeln(GetMessage);
end;
function GetMessage:string;
begin
result:= 'Hello';
end
it can be used if you want to make your code more organised, or if your making an include like SRL and you want to keep everything in order
Join the Official SRL IRC channel. Learn how to Here.
Can also be used to call a procedure that is in a script, from inside an include.
boreasanimation is the script, boreasanimationtest is the include.
Gah I ran out of upload space.
goto // i don't understand this
label // i don't understand this
nil // i don't understand this
look at this link..............And btw, string isn't a keyword, it's a type
ok i thought they were keywords
http://www.villavu.com/forum/showthr...?t=3890?t=4659
nil is for example the state of an object before you create it...
for example:
var
Button: TButton;
until you do like Button := TButton.Create(Form); ur Button will hold the value nil...
Also, you can for example create object not lined to another one, but i don't recommend that for most cases... unless for example, u use ur object without a form... But most object that need a sender to create in scar (now) need a form anyway or you can't use them...
For example:
Button := TButton.Create(nil);
Not that you can't create them wil a nil as sender... (which tells the object it doesn't have a sender in particular), if you put a form as parent it still works and everything... but oh well, you gotta make that out for urself![]()
wow, thanks man it's nice to learn new stuff!!!
o yeah do you know how to place functions and procedures in
Types
like TButton, TMemo, TImage and ect.........
Whats the diff between types and vars..?![]()
hakuna matata ;)
types are kinds of vars



Like a boolean, an integer, a string, they're all variables. Just different TYPES of variables
Yeah, like TPoint is
program new;
type
TheTPoint = Record // Had do use "TheTPoint" because TPoint wud give duplicate identifier...
X: Integer;
Y: Integer;
var
A: TheTPoint;
03-01-2007, 04:15 Pm
WTF?03-01-2007, 04:15 Pm
You gravedug
how and where? sry...
There are currently 1 users browsing this thread. (0 members and 1 guests)