<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>I don't understand the question.<br><br>> From: dragisha@m3w.org<br>> Date: Sat, 25 Dec 2010 22:22:34 +0100<br>> To: m3devel@elegosoft.com<br>> Subject: [M3devel] Out-of-place error?<br>> <br>> I am getting this message<br>> <br>> ***<br>> *** runtime error:<br>> *** An enumeration or subrange value was out of range.<br>> *** file "../src/types/XLTypeList.m3", line 235<br>> ***<br>> <br>> And code is:<br>> 235 RETURN RefSeq.Sub(o1, from-1, XLTypeNumber.FromInt(range.get(1)));<br>> <br>> In this environment (just to get an idea):<br>> IF range.get(1) = NIL THEN<br>> RETURN RefSeq.Sub(o1, from-1);<br>> ELSE<br>> RETURN RefSeq.Sub(o1, from-1, XLTypeNumber.FromInt(range.get(1)));<br>> END;<br>> <br>> Same crash, same line :), happened when I inserted<br>> <* DEBUG range.get(1) *><br>> <br>> before RETURN statement in ELSE branch..<br>> <br>> Why this happens?<br>> <br>> TIA,<br>> dd<br>> <br>> p.s. Merry Christmass, of course :)<br> </body>
</html>