MajorGeeks Support Forums

Go Back   MajorGeeks Support Forums > ----------= PC, Desktop and Laptop Support =---------- > Software
Register FAQ Members List Calendar Casino Mark Forums Read

Software Software such as operating systems like Windows XP, Windows Vista, Windows 7 etc., or specific programs.


Reply
 
Thread Tools Display Modes
  #1  
Old 06-21-03, 01:58
man_im_bored's Avatar
man_im_bored man_im_bored is offline
Private First Class
 
Join Date: May 2003
Location: australia
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default Brain not working 2day, asp problem

I need to create an array :

i=20
dim theArray(i)

I haven't actually done this one before where you say that the number of array value's you want is equal to a varable rather than a constant, so......

how do i make "i" a constant? (Because it comes up with the error saying 'needs to be a constant integer')

I tried int(i) before declaring the array, but it didn't work
__________________
Don't listen to me, I don't know what I'm on about...
Reply With Quote
Sponsored links
  #2  
Old 06-21-03, 07:52
goldfish's Avatar
goldfish goldfish is offline
Lt. Sushi.DC
 
Join Date: Jun 2002
Location: UK
Posts: 7,137
Thanks: 0
Thanked 3 Times in 3 Posts
Default

http://www.w3schools.com/asp/showasp...ame=demo_array

const i = 20
should work i would have thought...
__________________
(`._.[ G|Fh ]._.) Folding@Geeks, TEAM 12072 http://www.majorgeeks.com/page.php?id=9
Reply With Quote
  #3  
Old 06-21-03, 21:58
man_im_bored's Avatar
man_im_bored man_im_bored is offline
Private First Class
 
Join Date: May 2003
Location: australia
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm pretty sure I tried that....

but maybe i didn't. I'll go check (the pc i use for internet is different from my programming one).

anyone else? If I don't reply, it didn't work.
__________________
Don't listen to me, I don't know what I'm on about...
Reply With Quote
  #4  
Old 06-22-03, 19:17
man_im_bored's Avatar
man_im_bored man_im_bored is offline
Private First Class
 
Join Date: May 2003
Location: australia
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, it didn't work, but I found something anyway...

http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=63

thanks anyway
__________________
Don't listen to me, I don't know what I'm on about...
Reply With Quote
  #5  
Old 06-22-03, 20:56
Kodo's Avatar
Kodo Kodo is offline
SNATCHSQUATCH
 
Join Date: Jan 2002
Location: Syracuse NY, USA
Posts: 11,502
Thanks: 17
Thanked 72 Times in 49 Posts
Default

Dim array()
i=20
Redim array(i)
__________________
"The American people will never knowingly adopt Socialism..." -Norman Thomas
Reply With Quote
Sponsored links
  #6  
Old 06-23-03, 00:17
man_im_bored's Avatar
man_im_bored man_im_bored is offline
Private First Class
 
Join Date: May 2003
Location: australia
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was going to try that....but i forgot. Yeah, thats a lot simpliar thanks....
__________________
Don't listen to me, I don't know what I'm on about...

Last edited by man_im_bored; 06-23-03 at 00:19..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
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 On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 15:31.

MajorGeeks.Com Menu

MajorGeeks.Com \ All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ NEW! PC Games \ System Tools \ Macintosh \ Demonews.Com \ Top Downloads

MajorGeeks.Com \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds


Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger