Custom function to update one field with the value of another field

Custom function to update one field with the value of another field

Is it possible to post a basic script for doing this? I don't even need it to work within two separate modules - I just need the value of one field to be used to populate another in the same module. Can you assist?