Results 1 to 3 of 3

Thread: String to integer

  1. #1
    Join Date
    Jul 2008
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default String to integer

    For some unknown reason i'm getting Type Mismatch for my following function.

    Code:
    function getPriceGE() : integer;
    var
      textCols: TIntegerArray;
    begin
      textCols := [6400255];
      //Result := int('100');  << also fails
      Result := int(GetNumbers(GetTextAtExWrap(312, 184, 423, 198, 0, 1, 1, textCols[0], 0, UpCharsEx)));
    end;
    I know that the GetNumbers returns the GE price just fine however it won't convert it. Even doing int('100') gives me a mismatch.

    Any help would be appreciated

  2. #2
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Use StrToInt(S: String): Integer;
    Last edited by weequ; 12-03-2011 at 06:51 PM.
    Quote Originally Posted by DeSnob View Post
    ETA's don't exist in SRL like they did in other communities. Want a faster update? Help out with updating, otherwise just gotta wait it out.

  3. #3
    Join Date
    Jul 2008
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Perfect thank you

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
  •