(10-16-2025, 03:42 AM)Pete Wrote:Wait...whaaa??? So I thought you were screwing with us, but it does in fact work and returns 'App'. At first glance I looked and thought that it should return 4 characters but then realized that crossing 0 was effectively a digit which makes returning 3 characters correct. Dang son you almost got me!Code: (Select All)a$ = "Apple Pear"
Print Mid$(a$, -3, 7)
App
Pete
|
Don't fall for the mid$ trap
|
|
|
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
Don't fall for the mid$ trap - by doppler - 10-12-2025, 12:58 PM
RE: Don't fall for the mid$ trap - by SMcNeill - 10-12-2025, 01:18 PM
RE: Don't fall for the mid$ trap - by doppler - 10-12-2025, 01:32 PM
RE: Don't fall for the mid$ trap - by SMcNeill - 10-12-2025, 01:36 PM
RE: Don't fall for the mid$ trap - by SpriggsySpriggs - 10-14-2025, 04:28 PM
RE: Don't fall for the mid$ trap - by bplus - 10-14-2025, 06:52 PM
RE: Don't fall for the mid$ trap - by Pete - 10-16-2025, 03:42 AM
RE: Don't fall for the mid$ trap - by dano - 10-16-2025, 10:45 AM
RE: Don't fall for the mid$ trap - by Pete - 10-16-2025, 09:12 PM
RE: Don't fall for the mid$ trap - by doppler - 10-18-2025, 12:47 AM
RE: Don't fall for the mid$ trap - by Pete - 10-19-2025, 08:21 PM
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Don't let INKEY$ byte you in the ASCII | Pete | 1 | 173 |
02-01-2026, 10:44 PM Last Post: PhilOfPerth |
|
|
|
using $color:32 colour names mid-program? | hskakw | 2 | 207 |
01-14-2026, 09:30 AM Last Post: hskakw |
| Don't look now developers, but you've got a pat on your back! | Pete | 7 | 1,285 |
12-15-2024, 09:59 AM Last Post: TempodiBasic |
|
| "Well I don't give a damn about my bad reputation." | TDarcos | 16 | 3,570 |
09-13-2022, 12:32 AM Last Post: Kernelpanic |
|
| Don't make me REPETEND myself... | Pete | 23 | 4,392 |
08-14-2022, 11:48 AM Last Post: Pete |
|
Users browsing this thread: 1 Guest(s)


