Get station intersection

I've developed a vehicle sweep tool (standalone vb6 app) and need to get station for a point on a complex chain. I'm using ProjectPointOnPerpendicular to get a the desired point on the chain but how can I get the length (station) from chain start to my point.

Is there any function for this?