With Release 6, you no longer need to declare the field receiving the assignment prior to setting its value with @SetField. For R5 or earlier clients, declare the field at the beginning of the formula, as follows:
FIELD Fieldname:=Fieldname;
Syntax
@PostedCommand( [ command ] ; parameters )
Usage
This function does not work in column, selection, hide-when, section editor, window title, field, or form formulas, or [b]in agents that run on a server[/b]. It's intended for use in SmartIcons, button, hotspot, and action formulas.