Results 1 to 4 of 4

Thread: Type mismatch

  1. #1
    Join Date
    Mar 2007
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Type mismatch

    Hi

    when i wanna run my script:
    Code:
    Procedure Start;
    begin
      Incoming := ReadLn('From what temperature(Here just some names)?');
      Incoming2 := ReadLn('Into what temperature(Here just some names)?');
      Incoming3 := ReadLn('And how many of these?');
      if Incoming = 'Next3' then
      Next3;
      else
      if Incoming = 'Next' then
      Next;
      else
      if Incoming = 'Next2' then
      Next2;
      else
      //continue
    AARRRRGH Type mismatch

    What is wrong???

    \\Batnas

  2. #2
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Try this it may work :

    SCAR Code:
    Procedure Start;
    begin
      Incoming := ReadLn('From what temperature(Here just some names)?');
      Incoming2 := ReadLn('Into what temperature(Here just some names)?');
      Incoming3 := ReadLn('And how many of these?');
      if Incoming = 'Next3' then Next3;
        else
      if Incoming = 'Next' then Next;
       else
      if Incoming = 'Next2' then Next2;
        else
      //continue

    Hope I Helped

  3. #3
    Join Date
    Mar 2007
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nope surry:

    Failed when compiling
    Line 9: [Error] (9:46): Type mismatch in script D:\Programmer\SCAR 3.15\Scripts\TemperatureCalculator.scar

    \\Batnas

  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Maybe learn cases like :

    SCAR Code:
    Case Incomming of
    That will work like a charm

    Hope I Helped

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Type Mismatch...
    By Raskolnikov in forum OSR Help
    Replies: 3
    Last Post: 10-18-2008, 05:56 AM
  2. Type Mismatch..
    By Nava2 in forum OSR Help
    Replies: 1
    Last Post: 04-23-2008, 07:44 PM
  3. Type mismatch Help
    By Ashur2Good in forum OSR Help
    Replies: 2
    Last Post: 05-23-2007, 03:47 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
  •