CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Nov 2005
    Posts
    95

    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.
    Last edited by vbcandies; January 2nd, 2010 at 04:30 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured