Results 1 to 3 of 3

Thread: Why can't I do this (DTM help)

  1. #1
    Join Date
    Apr 2015
    Posts
    20
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default Why can't I do this (DTM help)

    I was attempting to make an array of DTMs out of existing DTMs today and noticed that the following doesn't work.

    Code:
    var myDTM1, myDTM2, myDTM3: Integer;
    var myDTMarray: Array [0..2] of Integer;
    
    myDTM1 := DTMFromString('myDTMstring1');
    myDTM2 := DTMFromString('myDTMstring2');
    myDTM3 := DTMFromString('myDTMstring3');
    
    myDTMarray[0] := myDTM1;
    myDTMarray[1] := myDTM2;
    myDTMarray[2] := myDTM3;
    
    FindDTM(myDTM1, x, y, xs, ys, xe, ye) //Finds DTM!
    FindDTM(myDTMarray[0], x, y, xs, ys, xe, ye) //Doesn't find DTM =(
    Can anybody help explain why this doesn't work and a smart way to get the desired result? This is not giving me an error, just the second FindDTM where I'm using the array doesn't find my actual DTM. Thanks.
    Last edited by spaderdabomb; 03-20-2016 at 12:44 AM.

  2. #2
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    269
    Mentioned
    17 Post(s)
    Quoted
    161 Post(s)

    Default

    What error are you getting? Not on my comp atm

  3. #3
    Join Date
    Apr 2015
    Posts
    20
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by kristi View Post
    What error are you getting? Not on my comp atm

    Sorry I should have specified I am not getting an error - rather I just can't find the DTM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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