Been using versions of this code since learning "bubble sort" in (not Visual) BASIC back in the early '80s:
Set Variable [$Value; value: YourTable::Field1 ]
Set Field [ YourTable::Field1 ; YourTable::Field2 ]
Set Field [YourTable::Field2 ; $Value ]
A common issue for newbies and Set Field:
When Setting up Set Field, there are two Specify buttons that must be clicked. To get Set Field [Table::Field ; Expression], add set field to your script and click the first button (specify target field). Select Table::Field from the list of fields. Do not click the specify button next to the repetition box. Click OK to close this dialog box. Now click the lower specify button (calculated result) and create the expression to the right of the semicolon (;). Do not try to type in the semicolon.
Thanks, worked like a champ and I am learning how to use scripts.