You can copy and paste the button into your layout (Both files should be open in layout mode).
You can also import the script from the starter solution (do this before you paste the button), but it's a very simple script. I don't see where it does anything much differently than simply selecting Delete Portal Row in button setup... for your button.
If you want to use a more sophisticated button/script for this, check out the delete portal row buttons and script used in my Known Bugs List database: http://www.4shared.com/file/8orL8apk/FMP_Bugs.html The script in this file highlights the portal row, then displays a custom dialog with data from the portal row to confirm that the user wants to delete the portal row--which makes it a bit more user friendly.
This script is fully portable as it doesn't directly refer to any layouts or fields. Instead, the needed data is passed as a parameter to the script from the delete button. (Double click the button while in layout mode, then click specify to see examples of what kind of parameter can be passed to this script.) You'll also find examples in this file of how to use conditional formatting and tool tips with these buttons to make them more informative to the user.
But copying and pasting the button over doesn't make it a field that is in the portal - and also, it doesn't make it so the delete button is recreated for every record in the portal. I wanted when the user makes a new record in the portal, the delete button is lined up with that record and is capable of deleting it with a click.
It's not a field, it's a button.
If you place it fully inside the portal row, (Check to make sure it's not a pixel too high or too low in the row), it will appear in every row in which there's a related record.
Hint: you can "nudge" layout items around one pixel at a time if you select them and then press an arrow key.
Ah you're right - thanks!