Optical sensor object distance

My team is finishing up our robot, and thought it would be a good idea to able to detect the field tape. However, the only reading that changes between the tape and the mats is object distance. How do I access this value in Vexcode text?