PureBasic 6.40 alpha 1 is ready, surprise inside !

Developed or developing a new product in PureBasic? Tell the world about it.
User_Russian
Addict
Addict
Posts: 1614
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

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

Post 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.
Rinzwind
Enthusiast
Enthusiast
Posts: 709
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

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

Post 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.
Post Reply