Featured Post Maximize Your Threat Intelligence Reporting Promoted by Recorded Future Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. What do aviation agencies do to make waypoints sequences more easy to remember to prevent navigation mistakes? Advanced Search VBForums Visual Basic ASP, VB Script (ASP) Array size must be integer constant. Function CreateArray(arraySize) Dim someArray(arraySize) ' EXPECTED INTEGER CONSTANT For i = 0 to UBound(someArray) someArray(i) = 5 Next CreateArray = someArray End Function But I'm getting an error: Expected integer constant http://codecove.net/microsoft-vbscript/microsoft-vbscript-compilation-error-expected-literal-constant.html
Hope this helps Alberto Gaona Enovar Quote:> I am receiving the following error: > Microsoft VBScript compilation error '800a0402' > Expected integer constant > /ticketsplus/newevents.asp, line 21 > Dim events(intRecCount) > It's not conducive to the general learning of others.* * I also don't respond to friend requests. TIA, coson vbscript share|improve this question asked Mar 22 '12 at 1:03 coson 2,10094065 add a comment| 1 Answer 1 active oldest votes up vote 9 down vote accepted Yes. How do you initialize a long constant with the sum of a different long constant and an integer? 7.
But I believe you can choose to use the AS or not in ADO as with these pages.If rs("users") is the number of total users and rs("records") is the number of Join Us! *Tek-Tips's functionality depends on members receiving e-mail. I owe a lot to you guys!
Just guessing... > Hope this helps > Alberto Gaona > Enovar > > I am receiving the following error: > > Microsoft VBScript compilation error '800a0402' > > Expected integer constant Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. Save a few bits and don't bother. Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.Just copy and paste the BBCode HTML Markdown MediaWiki reStructuredText code below into your site. Microsoft: ASP (Active
If this is your first visit, be sure to check out the FAQ by clicking the link above. Reply With Quote Quick Navigation ASP, VB Script Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Visual Basic Visual Basic .NET VB.net CodeBank Visual Basic Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo. Board index » vbscript All times are UTC Expected integer constant Expected integer constant Author Message Sean#1 / 6 Expected integer constant I am receiving the following error: Microsoft VBScript compilation
Reply With Quote Oct 16th, 2002,12:07 PM #2 JoshT View Profile View Forum Posts Black Cat Join Date Nov 2000 Location WNY, USA Posts 4,032 Perhaps you can Dim it to Did that off the top of my head at work without checking resources cause I didn't have time.Good you got it working though. -Ovatvvon RE: Dynamic Array Einstein47 (Programmer) 5 Jun Name spelling on publications How can I call the hiring manager when I don't have his number? Resources Join | Indeed Jobs | Advertise Copyright © 1998-2016 ENGINEERING.com, Inc.
Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) 8. http://www.tek-tips.com/viewthread.cfm?qid=287296 Results 1 to 4 of 4 Thread: (ASP) Array size must be integer constant. Covered by US Patent. Join your peers on the Internet's largest technical computer professional community.It's easy to join and it's free.
The only time you should worry is if somthing doesn't work....then you need to find out if it's not supposed to, or if you did somthin wrong. http://codecove.net/microsoft-vbscript/microsoft-vbscript-compilation-error-800a03e9.html All times are GMT -5. The time now is 10:41 AM. If so, you're missing out on one of the core tools in every professional programmer's toolbox.
Join our community for more solutions or to ask questions. Integer VB Vrs Integer SQL Arrrgggggggg 11. All rights reserved. have a peek here Dim Array error - expected integer constant 2. 'Expected Literal Constant' for Public Const 3.
Already a member? Integer or "integer"?? 12. I'll just end up rejecting anyways.* * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft * * How to Use
Connect with top rated Experts 20 Experts available now in Live! Powered by phpBB Forum Software MenuExperts Exchange Browse BackBrowse Topics Open Questions Open Projects Solutions Members Articles Videos Courses Contribute Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store If you want only as many elements as are in total thenIf total > 0 thenReDim timearray(total-1)End if www.VBResizer.com Generate Forms/Controls Resizing/Tabbing Classwww.VBCompare.com Compare Code (Text)www.VBSortGen.com Generate Sort Class in VB Code: const intChannelCount = 1 Dim arrChannel() ReDim arrChannel(intChannelCount) * I don't respond to private (PM) requests for help.
Posting Permissions You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are But at times you simply want to insert a common code block into your existing code and amend it as per your requirements. I was just wondering if there was a better way. Check This Out Close Reply To This Thread Posting in the Tek-Tips forums is a member-only feature.
I meant that you can not use AS in a declaration in VBScript as in (pun intended)Dim dim timearray() AS String2. RE: Dynamic Array Ovatvvon (Programmer) 5 Jun 02 11:54 why don't you try writing the total variable to the page to see what it's giving you? Should I carry my passport for a domestic flight in Germany Adding Views - VS Adds Scaffolding and NuGets How to sync clock frequency to a microcontroller Is it possible to Thanks, Sean Mon, 21 Oct 2002 03:00:00 GMT Sean#2 / 6 Expected integer constant Whoops, sent early by accident!
Could I still just goDim arMYARRAY()...Select statement...Redim arMYARRAY(RS("users"),RS("records"))Would that work?Thanks in advance, Einstein47(Love is like PI - natural, irrational, endless, and very important.) RE: Dynamic Array Ovatvvon (Programmer) 5 Jun 02 Dim array() Redim array(intSize) Jolhid 0 Message Author Comment by:evilsmurf22003-06-20 Thanks! 0 Write Comment First Name Please enter a first name Last Name Please enter a last name Email We This package includes VbsEdit 32-bit, VbsEdit 64-bit, HtaEdit 32-bit and HtaEdit 64-bit.The evaluation version never expires. Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 07-03-200304:44 AM #1 Gerhard View Profile View
You may have to register before you can post: click the register link above to proceed. CONTINUE READING Suggested Solutions Title # Comments Views Activity post4 challenge 28 68 66d count7 challenge 12 52 8d powerN challenge 3 30 38d wordlen challenge 3 24 20d Handy Code