In reviewing the Urecords.pas file I found a basic Delphi language question. The declaration for an "Entity" is a pcked record with a series of standard fields follwowed by a case statement that identifies the differences in the specific entity types. (ie Lines have 2 points, circles have point radius and other data, etc.) The Case statement reads:
aSint (an integer) is a declared type, not a variable, so what is the variable that determines what type of entity is in the record? The first field is enttype, but it is a byte, not an aSint.
Does anyone have any ideas, thoughts, knowledge, snide remarks?
Code: Select all
CASE aSInt OF
entlin: (linpt1,
linpt2: point);
entln3: (ln3pt1,
ln3pt2: point);
....
End;
aSint (an integer) is a declared type, not a variable, so what is the variable that determines what type of entity is in the record? The first field is enttype, but it is a byte, not an aSint.
Does anyone have any ideas, thoughts, knowledge, snide remarks?
Joe
User since V2.4
User since V2.4