home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 13
/
CD_ASCQ_13_0494.iso
/
maj
/
419
/
rinstr.bas
< prev
next >
Wrap
BASIC Source File
|
1994-03-13
|
676b
|
21 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1994 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
DECLARE SUB Reverse (St$)
SUB RInstr (MainSt$, SubSt$, Posn%)
Main$ = MainSt$
Sub$ = SubSt$
Reverse Main$
Reverse Sub$
Tmp% = INSTR(Main$, Sub$)
IF Tmp% THEN
Posn% = LEN(Main$) - LEN(Sub$) - Tmp% + 2
ELSE
Posn% = 0
END IF
END SUB