Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Sat Jan 24, 2026 12:25 pm
It might be better to do it this way.Function Len() with a flag #PB_String_UpdateLength will count the number of characters up to the zero byte.
Code: Select all
cap$=Space(999) : GetWindowText_(hWnd,cap$,999) : Len(cap$, #PB_String_UpdateLength) : Debug cap$