Detailed Explanation of Proceedings (World Illustration)
the (Sample Code)
function is used as a fantasy code organization, allowing access to the tag structure at development time;
[...]function Test(myStructure:System.Byte; myNumber:System.Int64):System.Boolean;
begin
result := False;
case myStructure of //[?]RequirementsDatabase
1: case myNumber of //[?]RequiredNumber;
100..200: Result := true;
end;
2: case myNumber of //[?]RequiredNumber;
1000..2000: Result := true;
end;
end;
end;
the IndexOf
myStructure is used to filter occurrences when the project is updated, in the example being able to change the number 1 by -1 invalidating the calls;
myNumber could also being changed by altering the values:
100,102..200(Sample Code: Usage)
this code makes access to the
101 tag which would execute the
begin\end code;
if test(1,101) then //could be commented if not required;
begin
mypretty := mirror1;
with mirror1 do
System.Exit;
end else ShowMessage('test returned IndexOutOfRange');
this logic could be removed from the final compilation by commenting the all
test occurrences; (if necessary\wanted)
when for whatever reason the project changes the meaning for accessing the
101 tag,
it could return a error indicating that work has to be made for the updated processes;