In this paper we determine completely the structure of linear codes over Z/
NZ of constant weight. Namely, we determine exactly which modules underlie
linear codes of constant weight, and we describe the coordinate functionals
involved. The weight functions considered are: Hamming weight, Lee weight,
two forms of Euclidean weight, and pre-homogeneous weights. We prove a gen
eral uniqueness theorem for virtual linear codes of constant weight. Existe
nce is settled on a case by case basis.