×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Passing an Array in VB

Passing an Array in VB

Passing an Array in VB

(OP)
thread561-242107: Array problems in journal

I have checked the above thread and I know my problem is the same but have not been able to find a solution.

My array size is being set as the user selects a number a faces in the following command.

CODE -->

Dim loftFace() As Face = select_faces("Select surface mold is being checked against.") 

Then I wish to use the selected faces in the a subroutine calling it thus:

CODE -->

PlaceIntersection( loftFace(), dPStation, loftInterLine ) 

the Subroutine is titled as following:

CODE -->

Sub PlaceIntersection( ByRef checkFace(-1) As Face, ByRef dPStation As DatumPlane, _
      ByRef InterLine As Features.IntersectionCurve ) 

but during compilation, I am getting the error of: "Number of indicies is less than the number of dimensions of the indexed array."
as well as "Array bounds cannot appear in type specifiers"

I wish the array to be dynamic, but I'm not sure how to pass the array afterwards.

Any help would be greatly appreciated.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources