Is it possible for strings to contain Chr(0) characters?
At the moment the following returns 0 instead of 10... but
I need a string to contain Chr(0).
Code: Select all
For r=1 To 10
a$=a$+Chr(0)
Next
Debug Len(a$)
PB - Registered PureBasic Coder
Code: Select all
For r=1 To 10
a$=a$+Chr(0)
Next
Debug Len(a$)
I did a small procedure a while ago that search and replace data in a memoryblock, you can find it on the resource site under the snippet section, it's called "findandreplacemem". With some modifications you can customize it to your needs...Originally posted by PB
Ah, okay. I was trying to use a string simply because I want to
use ReplaceString to change some data in a string... is there an
easy way to do a search/replace in a memory block? Or is this a
good request for a future command?![]()