@GetMem Spot on mate, that -1 did the trick.
@Geepster With TPageControl I would have to use one SynEdit per page, this way I only need to use the one and update the content as I go.
@Thaddy I do use code completion, without it things would take about a hundred times longer.
I searched the web, I looked on the forum, what I did not think about is the fact that the Count starts at 1, but the Tabs are 0 based, which threw off the count.
I'm a CFML dev, our arrays are 1 based so this occasionally throws me.
Could it/should it have been self-answered, probably, but I did search and I did try and I failed, only then did I ask for help.