I want to create an array with empty elements in it. Then use various proc to change the element values. Is this even possible?
Below is the general idea of what I'm trying to do
[codebox]global string $testProcString[3] = {"", "", ""};
proc mainTestProc()
{
step01;
step02;
}
proc step01() // Modify the existing Elements
{
$testProcString[0] = "zero";
$testProcString[1] = "one";
$testProcString[2] = "two";
}
proc step02() // Print those elements to verify they stayed change
{
print $testProcString[0];
print $testProcString[1];
print $testProcString[2];
}
mainTestProc;
[/codebox]