function @rinstr not working properly
Posted: Thu Jun 25, 2026 4:13 am
I use Eviews 14 Dec26 2024 build
The function @rinstr does not work as described in the help documentation which says:
So it seems @rinstr works in the same way as @instr, counting from left to the right.
The function @rinstr does not work as described in the help documentation which says:
Proof:Starting at the end of the string and searching in reverse, finds the starting position of the target string str2 in the string str1. By default, the function returns the location of the last (first from the end) instance of str2 in str1, but you may provide the optional integer n to change the occurrence.
Code: Select all
!i=@rinstr("987654321", "8")
Stautsline !i
' gives !i=2, rather than !i=8