I tried to search an array with the 'Find' function instead of 'For...Next' and 'InStr'.
The wiki says: "String[].Find (gb) Function Find ( Value As String [ , Mode As Integer, Start As Integer ] ) As Integer Returns the position of the first occurrence of Value in the array. If Value cannot be found, -1 is returned." But I can do what I want, I always get '-1'. No positive result ever. Attached is a tiny project that should show this behaviour. Where is my mistake? Thanks in advance Matti Gambas 3.9.2
FindString-0.0.1.tar.gz
Description: application/gzip
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user