San Fernando was founded in 1742 , and became the provincial capital in 1840 .
Founded in 1742 , it became the provincial capital in 1840 .