only code is bank one lean, replaced fuel pump,truck starts but only if pedal is on 1997 Ford F-150

pressed half way will not idle have to pat pedal to keep running,when it dies sounds like it pops back through throttlebody replaced ckp, no chang could it be cmp do these ford not usually set codes for cmp

Asked by for the 1997 Ford F-150
Check fuel filter if you have not already.
getting 35-40 psi
Fuel pressure seems to be good...any chance that you could have gotten E85 fuel by mistake? Lots of other causes but just wanted to mention that in case e85 is being sold in your area. You may need to find a good technician where you live to get a better diagnosis.