Article View: comp.lang.basic.visual.misc
Article #337Re: :::::::: Dynamic Array Dillema ::::::::
From: Lee Weiner
Date: Sun, 07 Oct 2001 01:15
Date: Sun, 07 Oct 2001 01:15
38 lines
2278 bytes
2278 bytes
It appears you are trying to ReDim the first dimension of the array. If you check HELP for the ReDim statement, you will find only the last dimension can be ReDimmed. Lee Weiner lee DOT weiner AT home DOT com In article <9po9gh$qjs$1@ctb-nnrp1.saix.net>, "sou|burn" <ralfvb@msn.com> wrote: >Hi there > >I'm having trouble with the following code > >:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: >:::::::::::::::::::::::::::::::::::::::::::::::::: >Public EXP() >EXP_Max as integer >v2 is a integer (always stays smaller than EXP_Max) >sTag is a string >:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: >:::::::::::::::::::::::::::::::::::::::::::::::::: >Select Case Left$(sTag, 3) > Case "ENG" > ReDim Preserve EXP(EXP_Max, 4) As String > EXP_Max = EXP_Max + 1 > EX(v2, 0) = sTag >End Select >:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: >:::::::::::::::::::::::::::::::::::::::::::::::::: > >I get an "subscript out of range" error on the ReDim line as soon as EXP_Max >= 2, meaning there are values in the array that needs 2 b "preserved" > >any help would be very much appreciated > >sou|burn > >
Technical Details
Message-ID:
<O0Ov7.150201$K6.72007202@news2>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news2.POSTED!not-for-mailReferences:
<9po9gh$qjs$1@ctb-nnrp1.saix.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110e3b,27dc3c52f32509a3 X-Google-Attributes: gid110e3b,public X-Google-Thread: 108062,27dc3c52f32509a3 X-Google-Attributes: gid108062,public X-Google-ArrivalTime: 2001-10-06 18:15:27 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news2.POSTED!not-for-mail Newsgroups: comp.lang.basic.visual.misc,cz.comp.lang.basic.visual From: nospam@home.com (Lee Weiner) Subject: Re: :::::::: Dynamic Array Dillema :::::::: References: <9po9gh$qjs$1@ctb-nnrp1.saix.net> X-Newsreader: News Xpress 2.01 Lines: 38 Message-ID: <O0Ov7.150201$K6.72007202@news2> Date: Sun, 07 Oct 2001 01:15:26 GMT NNTP-Posting-Host: 65.6.179.134 X-Complaints-To: abuse@home.net X-Trace: news2 1002417326 65.6.179.134 (Sat, 06 Oct 2001 18:15:26 PDT) NNTP-Posting-Date: Sat, 06 Oct 2001 18:15:26 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster