Code: Select all
String.s="aftershave"
Debug mid(String,findstring(String,"shave",1),len(String))
Code: Select all
String.s="aftershave"
Debug mid(String,findstring(String,"shave",1),len(String))
Because your solution doesn't cover both his scenarios.Killswitch wrote:Jesus, why are all of you producing such complicated solutions:
Code: Select all
String.s="aftershave" Debug mid(String,findstring(String,"shave",1),len(String))
Why is that less complicated than this?Killswitch wrote:Jesus, why are all of you producing such complicated solutions:
Code: Select all
String.s="aftershave" Debug mid(String,findstring(String,"shave",1),len(String))
Code: Select all
String.s = "aftershave"
Debug PeekS(@String.s+Len("shave"))
Trond wrote:Why is that less complicated than this?Killswitch wrote:Jesus, why are all of you producing such complicated solutions:
Code: Select all
String.s="aftershave" Debug mid(String,findstring(String,"shave",1),len(String))
Code: Select all
String.s = "aftershave" Debug PeekS(@String.s+Len("shave"))
PeekS()
Syntax
Text$ = PeekS(*MemoryBuffer [, Length])
Description
For advanced programmers only. Very useful to catch a string at the specified memory address. The string should be ended by a '0' character, else it will read the memory until a '0' is encounter. An optional length parameter (in bytes) can be specified.
Supported OS
All