Whenever any person who has not previously been convicted of any offense under this article or under any statute of the United States or of any state relating to narcotic drugs, marijuana, or stimulant, depressant, or hallucinogenic drugs, or has not previously had a proceeding against him for violation of such an offense dismissed, or reduced as provided in this section, pleads guilty to or enters a plea of not guilty to the court for violating this section, upon such plea if the facts found by the court would justify a finding of guilt, the court may place him on probation upon terms and conditions.
As a term or condition, the court shall require the accused to be evaluated and enter a treatment and/or education program, if available, such as, in the opinion of the court, may be best suited to the needs of the accused. This program may be located in the judicial circuit in which the charge is brought or in any other judicial circuit as the court may provide. The services shall be provided by a program certified or licensed by the Department of Behavioral Health and Developmental Services. The court shall require the person entering such program under the provisions of this section to pay all or part of the costs of the program, including the costs of the screening, evaluation, testing and education, based upon the person's ability to pay unless the person is determined by the court to be indigent.
As a condition of supervised probation, the court shall require the accused to remain drug free during the period of probation and submit to such tests during that period as may be necessary and appropriate to determine if the accused is drug free. Such testing may be conducted by the personnel of any screening, evaluation, and education program to which the person is referred or by the supervising agency.
Unless the accused was fingerprinted at the time of arrest, the court shall order the accused to report to the original arresting law-enforcement agency to submit to fingerprinting.
Upon violation of a term or condition, the court may enter an adjudication of guilt upon the felony and proceed as otherwise provided. Upon fulfillment of the terms and conditions of probation, the court shall find the defendant guilty of a Class 1 misdemeanor.
Va. Code § 18.2-258.1