From: Gautier <gautier@fakeaddress.nil>
Subject: Re: Please help! CONSTRAINT_ERROR: access check failed - This has me stumped!
Date: Fri, 22 Dec 2006 14:30:28 +0100
Date: 2006-12-22T14:30:28+01:00 [thread overview]
Message-ID: <458bddd5_1@news.bluewin.ch> (raw)
In-Reply-To: <1166791781.304063.115210@42g2000cwt.googlegroups.com>
tgwaltz:
> raised CONSTRAINT_ERROR : aufgabe1.adb:157 access check failed
I get the error on the line with the arrow.
A little help: anker.next is a shorter expression for anker.all.next.
Alles klar, Herr Kommissar ?...
--Fuer das Abfragen, an welcher Position in der Liste ein Element
--enthalten ist
function IndexOf(val : Integer) return Integer is
ind : Integer := 0;
begin
--> while anker.next /= null loop
if anker.v = val then
--nur das erste Ereignis wird ausgegeben
return ind;
end if;
anker := anker.next;
ind := ind + 1;
end loop;
return -1;
end IndexOf;
HTH, Gautier
______________________________________________________________
Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm
NB: For a direct answer, e-mail address on the Web site!
prev parent reply other threads:[~2006-12-22 13:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-22 12:49 Please help! CONSTRAINT_ERROR: access check failed - This has me stumped! tgwaltz
2006-12-22 13:12 ` Jean-Pierre Rosen
2006-12-22 21:16 ` tgwaltz
2006-12-22 13:30 ` Gautier [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox