ben
2013-02-22 19:27:30 UTC
I understand the basics of a functions but i have a few problems i need to clarify.
Okay lets say i have a function that lets me populate an Array that looks something like this'
¬Function PopulateArray ()
Declare variable I as integer
Declare constant NSSbSize=20
Declare Array CustomerID to hold 20 Integer Values
Declare Integer Array NSSBorder of size NSSbSize
I=0
For I=0 to NSSbSize-1
Display “Please enter the ID of the Customer”
Read CustomerID[i]
Display “Please enter Order.”
Input NSSBOrder[i]
End Function'
When i get to my next array i want to Populate.. How do i declare my variables? for eg The next array i need to populate only has to go up to 10.. so when i call the function, where will i set the variable to equal to 10? :S