bigcatpants wrote in vbdev

oh no! Not a scripter!

so yeah, I dabble [and by dabble i mean code, but just not very well] in ASP, and more recently ASP.NET, so I'm trying to get the hang of all of this VB loveliness.

anyways, I've had this problem where I'm trying to do what seems to be impossible, but it makes sense.

Example:
------------------------------
feces = "arrPoop"

dim arrPoop(4)
arrPoop(0) = "blue"
arrPoop(1) = "red"
arrPoop(2) = "green"
arrPoop(3) = "plaid"
arrpoop(4) = "courduroy"

dim arrCrap(4)
arrCrap(0) = "blue"
arrCrap(1) = "red"
arrCrap(2) = "green"
arrCrap(3) = "plaid"
arrCrap(4) = "courduroy"

function PoopHandler(arrayname)
'do something
end function

PoopHandler(feces)
------------------------------

essentially.. what I'm trying to accomplish is dynamically choose an array to stick into a function without the use of a not-so-dynamic select case...

i might need to clarify more. I don't know if I can though... so yeah.

anyone have any insight?