Brian,
If you issue a MODI FORM TheForm NOWAIT you can run a builder against it and drill down through the containership hierarchy pretty easily. There are several builder samples available on my website. There are some bugs in VFP5 though when trying to use PEMSTATUS() and GETPEM() on HelpContextIDs though. Sometimes it will not give you the correct value. I don't know if 6 still has the bug.
Did you know though that controls without a HelpContextID "inherit" the ContextID of the form. If you don't need control level topics you can pretty easily just set the form.HelpContextID.
>I want to write a program to maintain control help IDs. As I have often found, you can do this in VB, but you cannot do this in VFP.