Home > Back-end >  Delphi7 record operation problem, cannot judge if for and subsequent operations
Delphi7 record operation problem, cannot judge if for and subsequent operations

Time:12-08

Consult everybody now Delphi Daniel, I define a record in Unit1, as follows:
type
OperationMove=record
Operation: the string;
Target1: integer;
Target2: integer;
Tabu: integer;
end;


And defines the global variables in Unit1
var
A: an array of OperationMove;



Another record variables defined in the project:
var
B: an array of OperationMove;


Now the problem is in the project does not perform the if operation, the code is as follows:

if A [k]. Operation=B [I] Operation then
] the if (A [k]. Target1=B [I] Target1) and (A [k]. Target2=B [I] Target2) then
If B [I]. Tabu=TabuLength then
.
The else
.
End
The else
.

CodePudding user response:

Never used this method, help the top

CodePudding user response:

Set breakpoints tracking

CodePudding user response:

Does not perform is directly skipped or something?
  • Related