Greets all,
I've been puttering around with VB for a while now and have gotten down many of the basics, but one thing I often stumble over is arrays.
Right now, I have a MUSHclient variable whose contents are the exits in the room I'm in.
So the variable "exits" will have the contents "north south in up".
One of the subroutines I have splits these into an array like so:
pitexits = split(world.getvariable ("exits"))
What I'd like to know is if there's a function that tells me how many elements in the array. So if the contents are "north sout in up" I'd want it to tell me that my array has 4 elements. Can anyone point me in the direction of the function I need?
I've been puttering around with VB for a while now and have gotten down many of the basics, but one thing I often stumble over is arrays.
Right now, I have a MUSHclient variable whose contents are the exits in the room I'm in.
So the variable "exits" will have the contents "north south in up".
One of the subroutines I have splits these into an array like so:
pitexits = split(world.getvariable ("exits"))
What I'd like to know is if there's a function that tells me how many elements in the array. So if the contents are "north sout in up" I'd want it to tell me that my array has 4 elements. Can anyone point me in the direction of the function I need?