Results 1 to 2 of 2

Thread: Invalid Parameters on the Delete function?

  1. #1
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Invalid Parameters on the Delete function?

    This is confusing me. This is the line:

    SCAR Code:
    Delete(Str, 1, 1);

    It returns this:

    SCAR Code:
    Line 114: [Error] (114:25): Invalid number of parameters in script C:\Documents and Settings\Desktop\SCAR 3.15\Scripts\Minesweeper.scar

    Str is a variable.

    Any ideas? :/.

    ~Sandstorm

  2. #2
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program New;

    var
      str : string;
     
    begin
      str := 'hello';
      delete(str, 1, 1);
      writeln(str);
    end.
    Works for me .

    Show your complete script/usage of it.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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