would anyone have any idea why the following would enter into an infinite loop:
Code: Select all
sDimName = 'Position';
sSub = 'N_Level_Position';
sDimSize = SubsetGetSize(sDimName, sSub);
sPosition = '';
nLoopcount = 1;
WHILE( nLoopcount <= sDimSize );
    sPosition = SubsetGetElementName(sDimName,sSub,nLoopcount);
    nLoopcount = nLoopcount +1;
END;This runs normally when I comment out sPosition inside the loop:
Code: Select all
sDimName = 'Position';
sSub = 'N_Level_Position';
sDimSize = SubsetGetSize(sDimName, sSub);
sPosition = '';
nLoopcount = 1;
WHILE( nLoopcount <= sDimSize );
    #sPosition = SubsetGetElementName(sDimName,sSub,nLoopcount);
    nLoopcount = nLoopcount +1;
END;Maren
