If I use Select in a procedure, Info(“Empty”) responds as expected. If I use SelectRelated, it does not. I would expect that SelectRelated should work identically with Info(“Empty”).
Separate issue: With the ‘Record’ button activated in a Procedure window, the use of ‘Select Related in’ from the Search menu does not get recorded.
SelectRelated dow not work identically to Select in this regard. Unfortunately, this was not documented. I have updated the documentation to reflect this, the updated page is now available on the web.
Long story short, instead of using info(“empty”), you have to use IF ERROR to check for a failed selection.
As for recording this operation, sorry, but that does not work, and will not work. You’ll have to write this code manually.