Article View: alt.privacy.anon-server
Article #46795Fixing Subscript out of range (Was: JBN2 error message)
From: Thomas J. Boschloo
Date: Sat, 09 Nov 2002 13:00
Date: Sat, 09 Nov 2002 13:00
31 lines
2882 bytes
2882 bytes
heidegger@dasnichts.net wrote: > > I was organizing some files in JBN2 tonight, moving them to different > folders, using the right click functions such as "move to", etc. Suddenly > I started getting an error message when I would try to move a file using > the right click function: "An error has occured. Subscript out of range." > What is this error and how can it be fixed? I've no idea what caused this > or what in the hell it means. This error I think means the code in the Visual Basic program tries to convert too large a value to a smaller variable size. I think there are two factors in this: Visual Basic probably has no strong typing (iow allowing everything) + everything is a float in Visual Basic, meaning you get into trouble when your mantise gets too large because of a programming error. However, it can be fixed by a skilled Visual Basic programmer. In Basic, and I assume Visual Basic, you can catch exceptions and if you can reproduce this run-time error, a compiled source which catches this exception can provide you with the linenumber the error occurred in. Then you can fix the error in the Visual Basic source or simply test for the condition that triggers the overflow and avoid it. It is probably best practice to do both. I have cross-posted to a visual basic newsgroup because the only person who can code any visual basic in this group seems to be Mickey, Thomas -- There are two types of people with Borderline disorder. The ones I like and the ones I don't like. - T.J. Boschloo <home.hccnet.nl/t.j.boschloo>
Technical Details
Message-ID:
<3DCD06D2.FE23F7E7@hccnet.nl.invalid>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-microsoft.public.vb.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.wirehub.nl!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!news.hccnet.nl!not-for-mailReferences:
<9SE402ZL37561.4984606481@Gilgamesh-frog.org>Show Full Headers
Complete Article Headers
Message-ID: <3DCD06D2.FE23F7E7@hccnet.nl.invalid> Subject: Fixing Subscript out of range (Was: JBN2 error message) Date: Sat, 09 Nov 2002 14:00:02 +0100 From: "Thomas J. Boschloo" <nospam@hccnet.nl.invalid> References: <9SE402ZL37561.4984606481@Gilgamesh-frog.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-microsoft.public.vb.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.wirehub.nl!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!news.hccnet.nl!not-for-mail Newsgroups: alt.privacy.anon-server,microsoft.public.vb Organization: Hobby Computer Club News Network Lines: 33 NNTP-Posting-Host: uds235-35.dial.hccnet.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.hccnet.nl 1036850807 22042 62.251.35.235 (9 Nov 2002 14:06:47 GMT) X-Complaints-To: abuse@hccnet.nl NNTP-Posting-Date: Sat, 9 Nov 2002 14:06:47 +0000 (UTC) Cancel-Lock: sha1:5Mk7nJ4EIbnkAbmY12RPzi2D98E= X-Mailer: Mozilla 4.8 [en] (Win98; U) X-Accept-Language: en,nl,de X-NFilter: 1.2.1-b1