Basically theres not much difference (incidentally theres a bug in this line:FIELD FieldName:=";“Info To Update it to”;
should be
FIELD FieldName:=“Info To Update it to”;
If I was coding a simple agent, that didn’t do much except set a few fields, I would use FIELD FieldName:= .
If I was doing code that needed to do other stuff first (for example, send emails, display prompts etc etc, I would use @SetField.
One reason this is is that ‘sometimes’ notes complains (or possibly used to complain) if you use the := construct half way down formula language…these statements as I understood it, had to be at the start of formula code.
@Setfield does not suffer from this disadvantage.
If you are really setting a lot of fields, I tend to prefer @Setfield, because I think it makes the code look clearer, but thats just personal preference really…
I thought it was that simple, but couldn’t convince myself. I have been using the @setfield method mostly so that I have a consistent look, but thought if the other method helped with performance or anything else that I could start using it more often.
Oh, I saw that “bug” copy and paste problem just after I hit the Post button.