Assuming there's a space between the comma and the next number, and s = '20, 20, 100, 100':

Code:
SScanf(s, '%d, %d, %d, %d', [@X1, @Y1, @X2, @Y2]);
I agree it's not the fastest way to read data, but if you want to parse a string it can be a useful function.