Search memory for string with one command

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Search memory for string with one command

Post by PB »

I've seen lots of procedures to search memory for a string, but it would be
nice just to do something simple like this, where f=0 if not found, or the
location in memId of where it was found (like FindString).

Code: Select all

f=FindInMemory(memId,text$)
Last edited by PB on Sat Feb 10, 2007 10:30 am, edited 1 time in total.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

Good idea, maybe include a range of memory to search in as well.

I assume memid is the starting point, just need a memlen or such.
Post Reply