Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing an array as a parameter to a sub
#1
I have this sub here, and I want to pass a string array as a parameter to it. How do I do this? The sub is declared as STATIC, if that makes any difference.

Any help will be greatly apreciated Smile
If swimming is so good for your figure, how do you explain walruses?
Reply
#2
WEll assuming the following code:

Code:
DIM MyArray(10) AS STRING

' You'd call the sub this way
DoSomethingWithStrings MyArray()

' The sub would be declared as :
SUB DoSomethingWithStrings(StringArray() AS STRING)
    ' Put Parenthesis in the parameter up here.
END SUB

Hope this helps
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply
#3
Thanks MystikShadows, it worked for me Big Grin
If swimming is so good for your figure, how do you explain walruses?
Reply
#4
You're very welcome :-) Glad I could help. Feel free to ask any other question you have :-).
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)