I had to disconnect the battery on my 99 Transit

How do i go about getting the code.
Here's hoping some of you clever people know

By the way it is not white.
Also, anybody got a subaru, if you have, have you ever had hassle with the key fob?, ie not working when you need it
Cheers
A.M