I'm trying to get all the text from an edit box using the GetWindowTExt command but since the text in the edit box varies i don't want to pre set a string length incase it starts to run long, how would i determine how long the string would be in an edit box, would i use the strlen command?