I have read up on enumeration and everything I read has indicated that it returns an integer. However I am having problems doing any math using the variables value.
Nava2 wrote the following...
Code:
procedure WriteValue(v: (Blah, Boo, Took));
begin
Writeln(IntToStr(v));
end;
Produces this error: "[Error] (19848:21): Type mismatch in script".
When I tested the procedure I used this...
Code:
procedure WriteValue(v: (Blah, Boo, Took));
begin
Writeln(v);
end;
It is fairly similar exept I have not converted the variable "v" to an Integer.
The problem is that when I try to convert variable "v" to an Integer, or use it in a mathematical statement it produces an error.
So my question is, what Variable Type does "v" have?
Edit: Added Error Details.