INSTR returns 0 if an empty baseString$ is passed, and returns 1 with an empty searchString$the second affirmation is not 100% true as demonstrated by Bplus's code here
The start% position had to be at least 1 or greater when used or there will be an Illegal function call error. In QB64, a start% value of 0 or negative is interpreted as 1 and doesn't generate an error.INSTR returns 0 when it searches before the beginning position of the string in which it searches, and after the end of the string in which it researches
Hi Bplus
thanks to show another point of view that is condivisible, also if a part of my brain continues to say finding nothing in something is equal to not finding in something, but this is only a semanthic different approaching to the situation.
I am not able to imagine what has been the goal to build a function that can search nothing in something, but surely in the mind of the authors there was an use of this feature of INSTR.
Now why the guys who wrote QB45 had it the way they did, you'd need to ask them. :P