How can i get the versionCode to use with update function?

Pulled up a new question here which is related to this.

Cant solve it help is needed.