qtp run error subscript out of range Adolphus Kentucky

Address 3206 Scottsville Rd, Lafayette, TN 37083
Phone (615) 388-1622
Website Link http://mclarenit.net

qtp run error subscript out of range Adolphus, Kentucky

Can I use my client's GPL software? Below is the code I have a Max number = 5 so the loop is For i = 0 to Max-1 arrFname = Split(strFname, ",") I am using the value arrFname share|improve this answer edited Oct 3 '09 at 5:45 answered Oct 2 '09 at 15:29 slashmais 4,44973960 2 Option Base not supported in VBScript –AnthonyWJones Oct 2 '09 at 21:01 Keomed.com Webmaster www.keomed.com Mar 21, 2003,21:01 #2 wdmny View Profile View Forum Posts SitePoint Wizard Join Date Jul 2000 Location Here Posts 1,010 Mentioned 0 Post(s) Tagged 0 Thread(s) Originally Posted

You declared an array but didn't specify the number of elements. The Coffee Lounge Forum Feedback Computer Issues Announcements, Press Releases, & News « Previous Thread | Next Thread » Thread Information Users Browsing this Thread There are currently 1 users browsing Put those together you'll see that it's failing here: arylin(0) = "PB" share|improve this answer answered Oct 2 '09 at 15:30 Joel Coehoorn 249k92440662 2 Arrays create in VBScript always Arrays start with index 0, so if there are 5 items then index 5 will give you the subscript out of range error.

These values are taken and concatenated together with a '#' sign to separate values and finally stored in a single field of the database called 'Address'. When I saw the value in Watch window, it is perfectly showing me it's value as "10". Can I send ethereum to a contract outside of its constructor? With the huge success of QTP eLearn and gaining over 2000 trained participants in under 2 years, we launched Selenium eLearn as part of our training in 2011.

Ihave incuded the complete ASP page so maybe someone will test it? You may have to register before you can post: click the register link above to proceed. when i run the script, it will throw me an error after succesfully process 3 text files. Instead, you must use Dim or ReDim to specify explicitly the number of elements in an array.

About the 'On Error Resume Next' thing, maybe it should stay there ... Collective learning will be of great benefit to all. Not the answer you're looking for? Thanks!

Try using the For Each...Next construct instead of specifying index elements. Reply With Quote 05-02-2012,08:25 AM #9 belewda View Profile View Forum Posts Private Message View Blog Entries View Articles Advanced Member Join Date May 2007 Posts 602 Re: subscript out of Is it safe for a CR2032 coin cell to be in an oven? Thanks Reply With Quote 05-02-2012,06:15 AM #7 Rajkumar Rajangam View Profile View Forum Posts Private Message View Blog Entries View Articles Moderator Join Date Oct 2010 Location Norway Posts 3,265 Re:

not sure why it is Reply With Quote 05-01-2012,12:55 PM #2 Rajkumar Rajangam View Profile View Forum Posts Private Message View Blog Entries View Articles Moderator Join Date Oct 2010 Location Well your problem is a simple one. Also make sure what value UBound actually returns. You used a shorthand form of subscript that implicitly specified an invalid element.

And in fact i have already done that. I guess i have made few errors. In this case, an error is generated if keyname represents an invalid key in the collection. I also tried replacing the "If's" inside the loop with "Select Case" but it generates the same error When I add "On Error Resume Next" it works perfectly.

sartzetakis vagelis Software Developer Athens Greece Reply With Quote 03-28-2003,04:27 AM #4 DaiWelsh View Profile View Forum Posts Technology Angel Join Date Feb 2003 Location Derby, UK Posts 456 Yes, I Copyright BetaSoft Inc. Share opinions: Please feel free to reply, add or comment on any ongoing topics. Thinking about this I think your problem may have been due to not setting a size on your initial array.

Stop the Help Vampires:http://slash7.com/2006/12/22/vampires/ VB is NOTVB.Net which is NOTVBA which is NOTVBScript #6 Skie Total Posts : 58 Scores: 0 Reward points : 0 Joined: 3/2/2006 Status: offline RE: Advanced Search Forum Server-Side Development ASP Subscript out of range: '[number: 1]' If this is your first visit, be sure to check out the FAQ by clicking the link above. Forum Testing Tools HP Unified Functional Testing UFT / Mercury QuickTest Pro QTP subscript out of range If this is your first visit, be sure to check out the FAQ by Now I will have to split this data to get the date value "6/11/10".

The time now is 07:31 PM. Show: Inherited Protected Print Export (0) Print Export (0) Share IN THIS ARTICLE Is this page helpful? By using this site, you accept the Terms of Use and Rules of Participation. End of content United StatesHewlett Packard Enterprise International CorporateCorporateAccessibilityCareersContact UsCorporate ResponsibilityEventsHewlett Packard LabsInvestor RelationsLeadershipNewsroomSitemapPartnersPartnersFind a PartnerPartner To verify this add the following strAddress = split(Trim(oRS("Address")), "#") response.write "[" & Trim(oRS("Address")) & "]
" add1 = strAddress(0) add2 = strAddress(1) add3 = strAddress(2) add4 = strAddress(3) add5 = strAddress(4)

Proper Subject: Ensure you choose a very appropriate topic name. I face the same problem when running my vb script. But in 3rd line you are trying to assign the value to a two dimensional array. Welcome !

Browse other questions tagged arrays asp-classic or ask your own question. When I "Response.Write UBound(myArray)" I get 3 which is correct since the array contains 4 elements. ???? Next it seems that i need to find out how to change strFname to arrFname(i)? However VBScript does support SAFEARRAY of variants that may have non-zero LBound values.