Results 1 to 3 of 3

Thread: Some Array help?

  1. #1
    Join Date
    Oct 2010
    Location
    Under a bridge
    Posts
    648
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Some Array help?

    So my secound question today Ive got a TPA but i need to pass it into a function which takes an Array of TPA's. So i tried changing a TPA into it doing it like this
    [smart]
    OreTPA,RubishTPA :TPointArray;
    ATPA1,ATPA2,ATPA3,OreATPA :TPointArrayArray;
    [/smart]

    [smart]
    SetLength(OreATPA,1);
    OreATPA[0] := [OreTPA] //line 133
    [/smart]

    I think this is causing this run time error
    Code:
    Error: Type Mismatch at line 133
    but if this is not the error say so and ill post the whole function/script


    Thanks for the help
    Quote Originally Posted by DD on IRC
    wanted to troll the troll

  2. #2
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Why not just:
    Simba Code:
    OreATPA := SplitTPAEx(OreTPA, 15, 15);

    Or:
    Simba Code:
    oreATPA := TPAToATPAEx(oreTPA, 15, 15);

    The first example merges all found TPAs in a 15x15 box and puts them in to your ATPA.
    The second example does not merge the found TPAs and puts them in to your ATPA.

  3. #3
    Join Date
    Oct 2010
    Location
    Under a bridge
    Posts
    648
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok ill try that in a min then, thanks
    Quote Originally Posted by DD on IRC
    wanted to troll the troll

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
  •