x


Publically readable hashtables

What is the best way to access hashtables from other scripts? Assuming I'm using javascript should I just declare the hashtable as a static var and simply refer to it the same way as I would other public variables, or is there a better way to do it?

Thanks, Dave

more ▼

asked Jun 24 '10 at 06:38 PM

Dave 3 gravatar image

Dave 3
21 5 5 12

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You wouldn't want to declare it as static. Just doing var mytable : Hashtable should make it a public member variable by default and therefore accessible through other scripts.

more ▼

answered Jun 24 '10 at 06:48 PM

Tetrad gravatar image

Tetrad
7.2k 27 37 89

(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:

x3460
x343
x57

asked: Jun 24 '10 at 06:38 PM

Seen: 1209 times

Last Updated: Jun 24 '10 at 06:38 PM