Page 1 of 1

PostPosted: Tue Oct 29, 2002 9:08 am
by Eli
I am trying to do use a global array, since i need it across multiple functions and forms. When i try to compile:
pointer roster;
roster = Array("siiis,18,5");
I get an error on the Array line. If i move it inside main() then it compiles fine.
Is this possible? If not what would be the easiest thing to share it without going into pointers and calling it out from function calls.
thx. If someone has some short examples that would be great.

Eli

PostPosted: Tue Oct 29, 2002 12:35 pm
by jstadolnik
As in C/C++, function calls can only be made in either main or within another function. As you did, just put the Array call early in main().

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm