In the real code S is a text field from table Objects containing eg.: 0.4044216661597251,0.0659004623761775,0.1807015511863892,0.34897632027770825;P is a dataset from table Probabilities with a number of records, in this case :