Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > Simple Stuff (Newbies)

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-12-2004, 04:29 PM   #1
Batalia
Registered User
 
Join Date: Dec 2004
Posts: 3
Default Need help with a dimensional array

Trying to build a psduecode one dimensional array for the number of days in each month. Can anyone help me with this. Thanx
Batalia is offline   Reply With Quote
Old 12-12-2004, 05:24 PM   #2
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default

hi and welcome to As.Org

Hmm not shure what you mean but try this :
PHP Code:
My_array = [312931303130313130313031];
function 
GetDayCount(Month) {
    return 
My_array[Month-1];
}
for (
a=1;a<13;a++){
trace("the "+a+" hase "+GetDayCount(a)+" Days")} 
__________________

test your self -->http://www.actionscript.org/forums/s...86&postcount=8
Xeef is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:24 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.