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.