DAY 032: _INSTRREV
#4
I need help getting this to work

Code: (Select All)
deflng a-z

s$ = "much Steve go or after full Steve then if"
? s$

? instr(s$, "Steve")
? _instrrev(s$, "Steve")
? insteve(s$, "Steve")

function insteve(a$, b$)
    insteve = len(a$) - len(b$) + 2 - instr(resteve$(a$), resteve$(b$))
end function

function resteve$(a$)
    b$ = ""
    for i=1 to len(a$)
        b$ = b$ + mid$(a$, len(a$) - i + 1, 1)
    next
    resteve$ = b$
end function
Reply


Messages In This Thread
DAY 032: _INSTRREV - by Pete - 12-12-2022, 08:58 PM
RE: DAY 032: _INSTRREV - by vince - 12-12-2022, 09:10 PM
RE: DAY 032: _INSTRREV - by mnrvovrfc - 12-12-2022, 09:10 PM
RE: DAY 032: _INSTRREV - by vince - 12-12-2022, 09:39 PM
RE: DAY 032: _INSTRREV - by Pete - 12-12-2022, 10:20 PM
RE: DAY 032: _INSTRREV - by vince - 12-13-2022, 12:03 AM
RE: DAY 032: _INSTRREV - by Pete - 12-13-2022, 01:35 AM
RE: DAY 032: _INSTRREV - by vince - 12-13-2022, 02:02 AM
RE: DAY 032: _INSTRREV - by SMcNeill - 12-13-2022, 09:34 AM
RE: DAY 032: _INSTRREV - by mnrvovrfc - 12-13-2022, 11:16 AM
RE: DAY 032: _INSTRREV - by SMcNeill - 12-13-2022, 09:43 AM
RE: DAY 032: _INSTRREV - by Pete - 12-13-2022, 02:52 PM



Users browsing this thread: 1 Guest(s)