Official Soldat Forums
Server Talk => Scripting Discussions and Help => Topic started by: DorkeyDear on June 05, 2008, 02:34:36 pm
-
delete please, figured it out
-
Share it with the world...
-
if your really curious, i created an enumerated datatype containing "map" and then I had a string "Map" in a function; had a case statement with "map",but pascal was thinking of it as the "Map" variable.. if only pascal wasn't case insensitive... :(
-
??? I understand none of what you just said.
-
type
Blarg = (map, yes, no, good, others); //enumerated stuff
procedure Test(Map: string; Good: Blarg);
begin
case Good of
map: WriteLn('A');
yes: WriteLn('B');
no: WriteLn('C');
good: WriteLn('D');
others: WriteLn('E);
else WriteLn('F');
end;
end;
Instead of writing "A" when blarg is "map", it will write F sense its thinking "map" as the variable "Map", not the enumerated number,