? StringToInteger(LEFT(lcrect, 4), .T.) && Left ? StringToInteger(SUBSTR(lcrect, 9, 4)) && RightThis will give you the left and right edges of the task bar. Note that the left edge may be negative. In reality, these are all signed integers, so it may be a good idea to pass .T. to each call of StringToInteger.