Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Array to Procedure

Status
Not open for further replies.

monkeyboy58

Technical User
Jul 6, 2005
13
0
0
US
I get compile errors when I attempt to pass a string array to a procedure...
Error C114 Line 258: Illegal initializer expression
Error C122 Line 258: Subscript on non-array

Here is the call:
ReTryAccess(NoAcc[], ArrayCt) ; pass array NoAcc[] and number items placed in array

Here is Line 258:
param string NoAcc[10] ; Passed string Array

The goal is to dial 40+ sites, place sites with errors into the array (avg less then 10 errored sites) then pass the array and count of sites placed in array to subproc to redial the sites at a later time.

 
Unfortunately there is no way to pass an array, just a single element of the array. The only workaround is to make your array global so that it does not need to be passed at all.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top