Results 1 to 7 of 7

Thread: List index out of bounds (8921400)

  1. #1

    List index out of bounds (8921400)

    ik krijg de error List index out of bounds (8921400), als ik deze code run:


    Code:
    function SearchFor(_String, SearchIn : String; _Start, _End : Integer) : Integer;
    var
      Loop : Integer;
    begin
      Result := -1;
      for Loop := _Start to _End do
        begin
          if UpperCase(Copy(SearchIn, Loop, Length(_String))) = UpperCase(_String) then Result := Loop - 1;
          if Result > -1 then Exit;
        end;
    end;

    ik roep m zo aan, en als ik m 'uitcomment' runt ie wel gewoon:

    Code:
        TInt := SearchFor([COLOR=blue]'[quote='[/COLOR], TextIn, 1, Length(TextIn));

  2. #2
    hm het had daar niet mee te maken.. internet explorer liep weer eens te f*cken :S sorry :$

  3. #3
    notice-itter SvG's Avatar
    Join Date
    Apr 2002
    Location
    's-Hertogenbosch
    Posts
    4,865
    Waarom maak je geen gebruik van FastStrings? Die heeft precies zo'n soort functie alleen zal die een stuk sneller werken
    !

  4. #4
    wat is dat?? :$

  5. #5
    Konijnus Digitalus Bobo's Avatar
    Join Date
    Jul 2003
    Location
    Pernis
    Posts
    338
    link ..een toolbox met stringfuncties, ik zit 'm na de posts van SVG te hebben gelezen ook net te bekijken...

  6. #6
    hmm.. thank you!
    ik zal eens even kijken..

  7. #7
    Als je toch wilt zoeken van 1 tot Length(Tekst) dan kun je het net zo goed gewoon met Pos doen.
    1+1=b

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Nieuw event op basis van ander Event
    By jchompff in forum Algemeen
    Replies: 8
    Last Post: 06-Oct-03, 11:14
  2. List Index out of Bounds (4)
    By RedPanda in forum Algemeen
    Replies: 10
    Last Post: 03-Feb-03, 20:07
  3. [DeX 2.0.0.0] Bug List Index Out of Bounds.
    By Richard in forum DeX 2.x
    Replies: 4
    Last Post: 10-Nov-02, 18:48
  4. List index out of bounds (116)
    By Greta in forum DeX??
    Replies: 5
    Last Post: 31-Jul-02, 15:24
  5. List Index out of Bounds (195)
    By Richard in forum Algemeen
    Replies: 8
    Last Post: 05-Oct-01, 08:33

Bookmarks

Posting Permissions

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