|
Forum Index : Microcontroller and PC projects : INSTR - last optional parameter as in FIELD$ ?
| Author | Message | ||||
| jirsoft Guru Joined: 18/09/2020 Location: Czech RepublicPosts: 533 |
Hi Peter, could be added to INSTR last parameter in similar way like has FIELD$? So: CONST STRING a = CHR$(34) + "some text" + CHR$(34) PRINT INSTR(a, " ") will return 4, but CONST STRING a = CHR$(34) + "some text" + CHR$(34) PRINT INSTR(a, " ", CHR$(34)) will return 0 Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
| JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 4147 |
I hope it prints 6, not 4!! John |
||||
| jirsoft Guru Joined: 18/09/2020 Location: Czech RepublicPosts: 533 |
Of course, I don't know, why my internal calculator is so much miscalibrated Next time I will really try it on the CMM2...Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |