x


Passing an Array

here's some evidence that I'm retarded: I cant seem to pass an array of strings to another function. I'm using Javascript (which I don't know well) and trying things like:

function setSelectedUnit (jims: Array){

}

its not working. please help

more ▼

asked Apr 28 '10 at 05:31 AM

Jordan Miller 2 gravatar image

Jordan Miller 2
348 47 51 57

You haven't said what you're actually trying to do...the code you posted is fine as far as it goes, and will work. You should provide more detail about what's "not working".

Apr 28 '10 at 05:57 AM Eric5h5

oh my you're right, it is working now! I guess it was passing the array all along, something else must have been going wrong. but its working now, thanks anyway. man I feel dumb.

Apr 28 '10 at 06:24 AM Jordan Miller 2

Well, the important thing is that it's working. ;)

Apr 28 '10 at 08:14 AM Eric5h5

Hm, I'm wondering how questions which resolved themselves could be deleted, so they won't turn up as "unanswered"...

Apr 28 '10 at 10:25 AM StephanK
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

ID10T error.

this works just fine:

function setSelectedUnit (jims: Array)
{

}
more ▼

answered Apr 29 '10 at 01:51 PM

Jordan Miller 2 gravatar image

Jordan Miller 2
348 47 51 57

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3570
x1396
x498

asked: Apr 28 '10 at 05:31 AM

Seen: 1929 times

Last Updated: Apr 28 '10 at 06:20 AM