Jump to content
Old Bad

Index to intrger??

Recommended Posts

How i will get that h index in to integer (tk), in case that index is that when script finds DTM (not the last (3 in that script)) :confused:

maybe i will get differently that integer tk which indicates what DTM was found ?

program New;
var
 h: array of Integer;
 Index,DTM55,DTM56,DTM57,DTM58,k,l ,tk: Integer;
 klots1:boolean;
begin
DTM55 := DTMFromString('78DA63F4606060106240013549109A11CA670' +
   '4A9F120A0C68C48352A04D40811A986809B0157BD075D');
DTM56 := DTMFromString('78DA6314626060006124509304A119A17C463' +
   '322D5A81050A342841A2122D59811A1C68308F79811E12F62D410B00' +
   'B002C920BEB');
DTM57 := DTMFromString('78DA6354616060106240013549109A11CA67F' +
   '420420DC81C15026ACC88546346845DC4A8F120C25F04D400007EDF0' +
   '9F5');
DTM58 := DTMFromString('78DA6354616060106240013549109A11CA678' +
   'C22420DC81C33026ACC8854A342408D07916ACC88F017013500AF3F0' +
   'A3D');
 SetLength(h, 4);
 h[0] := DTM57;
 h[1] := DTM55;
 h[2] := DTM56;
 h[3] := DTM58;
 for Index := Low(h) to High(h) do
 if (klots1=false) then
   begin
   if FindDTM(h[index],k,l,0,0,400,400) then
     begin
       tk:=(h[index]);
         writeln('tk:='+inttostr(tk));
         writeln('klots  found');
       klots1:= true;
  end;
end;
end.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...