AddEditVar with weights