I am trying to provide a button to Find All Duplicate Records, but not Remove from results, or delete. The Tree menu in Search Mode works well manually. I have tried two other methods to do this, but they don't work. Details are in an earlier posting for "Finding Duplicates".
This brought me to a third approach, but since it is more generic I thought it should have its own topic. I am trying to add a Button onto the Button Panel, to Make the "All Duplicates Search" Tree selection. Having no success. Here is the code I am using to do this:
#include "sbasic_include.sbas"
ButtonPanelItem(BUTTON_PANEL_ADD_ITEM, SEARCH_PANEL, "Show ALL Duplicates", "Search Menu!Search Commands!All Duplicates Search"
What is wrong with this code? I have tried to run it from a Command Button. I have called the code when the form first opens. I see no way to troubleshoot it, no return code.
My "sbasic_include.sbas" file is in C:\Sesame2\ folder, same folder as my Sesame.ini file.
I thought about putting it in the Application Code, but would like to make these changes with code, vs. a semi-hardcoded Button Panel.
So, again, what am I doing wrong? I never tried adding/deleting buttons here, but now that I know about it, seems like I need to really understand for other future purposes.
Thanks for listening.