Results 1 to 2 of 2

Thread: Loading Question

  1. #1
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default Loading Question

    I was wondering what formats would be best for a larger file script.

    Here's what I mean;

    Simba Code:
    program Big;
    {$i srl/srl.simba}

    const
     WantedVariableName = 'Var1';  //Enter the variable to be found here

    Procedure Main;

    var
      Var1, Var2, Var3, Var4, etc : Integer;

    begin

      Case LowerCase(WantedVariableName) of

        'Var1':
          begin
            Var1 := StrToInt(GetLetters(Between('', '', Getpage(''))))
            Writeln('Variable 1 Name Here   = ' + IntToStr(Var1));
          end;

        'Var2':
          begin
            Var2 := StrToInt(GetLetters(Between('', '', Getpage(''))))
            Writeln('Variable 2 Name Here   = ' + IntToStr(Var2));
          end;

        'Var3':
          begin
            Var3 := StrToInt(GetLetters(Between('', '', Getpage(''))))
            Writeln('Variable 3 Name Here   = ' + IntToStr(Var3));
          end;

        'etc':
          begin
            etc := StrToInt(GetLetters(Between('', '', Getpage(''))))
            Writeln('etc Name Here   = ' + IntToStr(etc));
          end;
      else
        begin
          Writeln('Finished.');
          TerminateScript;
        end;
      end;
    end;




    begin
      SetUpSRL;
      ClearDebug;
        repeat
          Main;
        until true
          TerminateScript;
    end.

    And that would be for tens of thousands of entries.

    Gracious to any form of assistance! :>

    Edit: .
    Last edited by Le Jingle; 04-01-2012 at 11:27 PM.

  2. #2
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    Hmm I think now I'm just curious if I should leave everything in one procedure, break every entry up into it's own procedure (a defined var and case of for each procedure), or use some type of a different/another function. thanks again to anyone who looks/helps

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
  •