Use InStrB but it's very slow because you have two byte-array string conversions.
I thought his "hay" was already an ANSI byte array, but some1uk03 isn't clear about that, so IDK.
Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.