We show that the incidence vector of any hermitian variety in the projective geometry PGm−1(Fq2), where q = p t , and p is a prime, is in the code over F p of the symmetric design of points and hyperplanes of the geometry by using the theorem of Delsarte [8] that identifies this code with a nonprimitive generalized Reed-Muller code.