Shop
OBEX
P1 Docs
P2 Docs
Learn
Events
Return arrays — Parallax Forums
toggle menu
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Sign In
·
Register
×
Home
›
Propeller 1
Return arrays
codeking
Posts:
39
2007-01-08 22:30
edited 2007-01-08 22:32
in
Propeller 1
How can you make a function return an array? I've tried PUB myFunction : myArray[noparse][[/noparse]12], but it doesn't work.
Comments
Paul Baker
Posts:
6,351
2007-01-08 22:32
edited 2007-01-08 22:32
You pass a pointer to the array, same as is required in C.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Sign In
or
Register
to comment.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.