johnlopez2000
Programmer
#~ Please note the following array:
% array get xAssignments
{Eng Release,Quality} {doviakg5 lopezj5} {Eng Release,Materials} {doviakg lopezj} {Eng Release,Performance} {doviakg3 lopezj3} {Initial,Big guy} {verginisd lawheadg} {Eng Release,Project} {doviakg4 lopezj4} {Initial,Eng Dude} {verginisd2 lawheadg2} {Initial,Mfg Dude} {verginisd3 lawheadg3} {Eng Release,Mfg Eng} {doviakg2 lopezj2}
#~ when I attempt to ARRAY GET with a search pattern
#~ of the indexes, and the index is "hard coded"
#~ it works as expected:
% array get xAssignments {Initial,*}
{Initial,Big guy} {verginisd lawheadg} {Initial,Eng Dude} {verginisd2 lawheadg2} {Initial,Mfg Dude} {verginisd3 lawheadg3}
#~ however, when I make the array index pattern a variable
#~ it seems that it is not expanding the variable prior to
#~ searching the array with the supplied key
% set key "Initial"
Initial
% array get xAssignments {$key,*}
%
Is there something obvious I am missing?
John Lopez
Enterprise PDM Architect
lopez.john@goodrich.com
% array get xAssignments
{Eng Release,Quality} {doviakg5 lopezj5} {Eng Release,Materials} {doviakg lopezj} {Eng Release,Performance} {doviakg3 lopezj3} {Initial,Big guy} {verginisd lawheadg} {Eng Release,Project} {doviakg4 lopezj4} {Initial,Eng Dude} {verginisd2 lawheadg2} {Initial,Mfg Dude} {verginisd3 lawheadg3} {Eng Release,Mfg Eng} {doviakg2 lopezj2}
#~ when I attempt to ARRAY GET with a search pattern
#~ of the indexes, and the index is "hard coded"
#~ it works as expected:
% array get xAssignments {Initial,*}
{Initial,Big guy} {verginisd lawheadg} {Initial,Eng Dude} {verginisd2 lawheadg2} {Initial,Mfg Dude} {verginisd3 lawheadg3}
#~ however, when I make the array index pattern a variable
#~ it seems that it is not expanding the variable prior to
#~ searching the array with the supplied key
% set key "Initial"
Initial
% array get xAssignments {$key,*}
%
Is there something obvious I am missing?
John Lopez
Enterprise PDM Architect
lopez.john@goodrich.com