Why would you want to clear these fields? It would be simpler to delete the record than to clear all the fields (assuming that these are not global fields).
Clear only works if the fields cleared are physically present on the layout--so that may explain why the script is not working. If the fields are present on the layout, you might run the script in the debugger and check after each clear step to see if an error code is returned.
Set Field [Quiz::Conf #5 count 1 Field ; "" ]
also clears the field and the field no longer has to be physically present on the layout. (But a valid reference to the field is still required.)
Wow! That does explain it. My fields that I am trying to clear are behind the scene for calculation values.
I will use the set field as you suggested.
LaRetta posted a slick trick that enables you to change a value in one number field and then auto-enter calculations clear all the fields set up with this same calculation:
If ( clearField ; "" ; Self )
(Clear the do not replace existing values check box)
This way you can clear a whole group of fields with just two set field steps:
Set Field [YourTable::clearField ; True ]
Set Field [YourTable::clearField ; False ]