High-dimensional affine codes were constructed using weak block designs, where thes-
dimensional cosetofs-dimensional affine geometryG (m, p)over a finite fieldFpwas taken as an
informationalbi,t and everys-dimensional coset family corresponding each elementwas regarded as a
check line. The codes are the generalization of the affine manifold codes, and their lengths,
dimensions, minimum distances and rateswere analyzed.