Results 1 to 23 of 23

Thread: Need A List Of KeyWords

  1. #1
    Join Date
    Dec 2006
    Location
    utah
    Posts
    1,427
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default Need A List Of KeyWords

    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


  2. #2
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  3. #3
    Join Date
    Dec 2006
    Location
    utah
    Posts
    1,427
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    dang i know all those and more
    all well..................

  4. #4
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    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

  5. #5
    Join Date
    Oct 2006
    Location
    I'm a figment of your imagination
    Posts
    422
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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!!!

  6. #6
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by botmaster View Post
    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.
    file isn't a keyword of scar and set is useless, doesn't work properly

  7. #7
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Wrong time to ask this, but what does Forward do? I could never figure that out

  8. #8
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Just wondering...but why is there a Cardinal type in scar?
    Interested in C# and Electrical Engineering? This might interest you.

  9. #9
    Join Date
    Aug 2006
    Location
    London
    Posts
    2,021
    Mentioned
    2 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  10. #10
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    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.

  11. #11
    Join Date
    Dec 2006
    Location
    utah
    Posts
    1,427
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    goto // i don't understand this
    label // i don't understand this
    nil // i don't understand this

    And btw, string isn't a keyword, it's a type
    look at this link..............



    ok i thought they were keywords

  12. #12
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    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

  13. #13
    Join Date
    Dec 2006
    Location
    utah
    Posts
    1,427
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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.........

  14. #14
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    like other stuff i guess..
    SCAR Code:
    type
      ButtonForm = record
        Form: TForm;
        Button1, Button2: TButton;
      end;

  15. #15
    Join Date
    Mar 2006
    Location
    United States, -7:00 GMT
    Posts
    1,790
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    Whats the diff between types and vars..?

    hakuna matata ;)

  16. #16
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    types are kinds of vars

  17. #17
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Like a boolean, an integer, a string, they're all variables. Just different TYPES of variables

  18. #18
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    Integer, string, Extended, Boolean, etc...
    They're all types...
    However, if you for example do:
    var
    a: Integer;

    Then a would be a variable of the type Integer...
    The type is the structure of the variable, in other words, what can be in it and how it can be divided.

  19. #19
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    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;

  20. #20
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    03-01-2007, 04:15 Pm

  21. #21
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    03-01-2007, 04:15 Pm
    WTF?

  22. #22
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    You gravedug

  23. #23
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    how and where? sry...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 23
    Last Post: 01-08-2008, 01:20 AM
  2. MSN list.
    By papetowe in forum News and General
    Replies: 11
    Last Post: 03-21-2006, 05:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •