Passing Array in Function

'Passing Arrays as Arguments' tutorial was cited in a StackOverflow forum post in 2011.

The Passing Arrays as Arguments tutorial was cited in a StackOverflow forum post in 2011.

Subject: Passing Array in Function
Date: Sep 30, 2011
Author: Chris Santiago
> I have an array that is read like this
>     MyArray(0)='test'
>     MyArray(1)='test2'
>     MyArray(2)='test3'
> How do I pass this through a function?
>     Function(MyArray(all_arrays)) 
> What do i put for 'all_arrays'?
Looks like you need to define you function as such:

Function <FunctionName>(byref <list Name>)

then when you call it in your code use


found here:

passing by referrence using just the array name allows you to pass in
the entire array to the function

Table of Contents

 About This Book

 Reference Citations in 2017

 Reference Citations in 2016

 Reference Citations in 2015

 Reference Citations in 2014

 Reference Citations in 2013

 Reference Citations in 2012

Reference Citations in 2011

 Simplified Chinese Unicode table

 How to Edit a Mobile Registry With Commander

 OpenSSL in Ruby

 Utilisation de la JVisualVM en remote via jstatd Newsletter - April 2011

 AES Encryption / Decryption with Java 1.5 and ActionScript as3crypto

 problem in insert into database

 2X Gateway SSL

 Creating Installer

 Implement statement batch for Connector C++

 Twitter OAuth Library/HUD

 How to connect Oracle data base

 regexParser.cpp downloader

 SET IDENTITY_INSERT for table fails

 Winsock TCP buffering behaviour

Passing Array in Function

 Reference Citations in 2010

 Reference Citations in 2009

 Reference Citations in 2008

 Reference Citations in 2007

 Reference Citations in 2006

 Reference Citations in 2005

 Reference Citations in 2004

 Reference Citations in 2003

 PDF Printing Version