Set DBPoint Elevation to Nearest Text

My language is not good anyway
Calculate a distance between each point With all texts from Melal Naqou the closest entry is required And so on Determines the order of each text through a list of text points

I don’t know if you understand me
can you look at this