Hi dream chaser,
In HPLC, the compound is injected into the solid stationary phase. The compound (mobile phase) then gradually moves down the stationary phase column. While it does this, the different types of molecules react to the stationary phase different amounts, and this relates to the length of time that the mobile phase stays in the column. Thus, the different components of the compound exit the column at different times, and go through the UV machine, which analyses the different compounds, and their retention times, as well as the analysis, create a picture of the different compounds, and thus the different components are analysed. That is the entire function of a HPLC machine. Hope this helps