That code could still delete fields that you use. If you have fields that are not in any form or view, but are created by and accessed from Lotusscript (or Java), they will be deleted...
I frequently use a field called flagDelete, which I set to "Yes" when I want to allow a user to delete a document. The users don't have delete access to the database, I just let them set the flag and then I have a scheduled agent that runs every hour to perform the actual deletion. That agent is signed by the developer ID, which has delete access in the database.
So, be careful, but in most cases I imagine that code will work. I don't underatand why the code is not using lists to store the fields, though. Would be much faster, as redimming an array is expensive.
Elinimating Unused Variables (Paul Gaschke 25.Apr.12)
Feedback response number WEBB8TULBW created by Karl-Henry Martinsson on 04/30/2012
. . Unused Field Names (Tony May 27.Apr.12)
. . . . Wow, very cool (Paul Gaschke 27.Apr.12)
. . . . . . Just be careful... (Karl-Henry Mart... 30.Apr.12)
. . . . . . . . Will be Careful (Paul Gaschke 30.Apr.12)