extracting an index part II
I am trying to create a function GetIndex that will:
scan the controls (indexed controls) of a provided FRAME (using me.controls and the .container property) and on error resume to limit to controls in the provided frame
look for a specific indexed control and determine true/false if it is within the specified indexed frame:
GetIndex(frame, Frameindex, control, Cindex)
example: frame frmDogLeg(3) has optbut(0), optbut(2), optbut(5), optbut(11) in it
then GetIndex(frmDogLeg, 3, optbut , 2) should return TRUE
GetIndex(frmDogLeg, 3, optbut , 7) should return False
Note that I need to specify the indexes as separate numbers. I seem to get close, but keep going around in circles.