Is there a way to have a procedure return an entire array?
Jason
Returning an array from a procedure
Code: Select all
Procedure MyProc(MyArray.l(1)) ;1 in brackets is the number of dimensions
MyArray(5) = 100
MyArray(10) = 1000
EndProcedure
Dim AnArray.l(20)
AnArray(5) = 10
Debug AnArray(5)
Debug AnArray(10)
MyProc(AnArray())
Debug AnArray(5)
Debug AnArray(10)
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
still preoccupied with returning a structure? 
Edit, I can't keep up with your edits Byo!!

Edit, I can't keep up with your edits Byo!!

Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada