Page 3 of 3

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Posted: Sat Jan 24, 2026 12:25 pm
by User_Russian
It might be better to do it this way.

Code: Select all

cap$=Space(999) : GetWindowText_(hWnd,cap$,999) : Len(cap$, #PB_String_UpdateLength) : Debug cap$
Function Len() with a flag #PB_String_UpdateLength will count the number of characters up to the zero byte.

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Posted: Sat Jan 24, 2026 1:38 pm
by Rinzwind

Code: Select all

Sounds great and welcome improvement. Now is a good time to combine it with """multiline
string
literals"""
f"combined with $StringInterpolation/formatting" (or at least a buildin procedure eq enhanced printf)
Because XML/HTML/JSON/POSTGET/SQLITE/ text blocks are quite common and concatenating is painful and a source of errors/bugs.