Author Topic: ISPF FIND command not working as expected  (Read 3716 times)

DaveyC

  • Senior Community Member
  • Posts: 165
  • Hero Points: 9
ISPF FIND command not working as expected
« on: February 15, 2010, 07:11:46 am »
I've been playing around with ISPF emulation mode recently helping a colleague transition from SPF/PC to SlickEdit.
We've found some issues, one of which is the ISPF find command not working as expected when specifying a start column
without an end column in the bounds arguments. For example FIND string 2 expands to FIND string 2 2, which will never
find anything. Normal ISPF behaviour is to expand to FIND string 2 2+length(string). I found the code in ispfsrch.e and hacked it
to work correctly.

Code: [Select]
// vssearch_bounds.endCol=vssearch_bounds.startCol; never gonna find anything!!!

vssearch_bounds.endCol=vssearch_bounds.startCol + length(searchString); // correct

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6402
  • Hero Points: 499
Re: ISPF FIND command not working as expected
« Reply #1 on: February 15, 2010, 01:53:40 pm »
Thanks for finding this. I think there needs to be a -1 in the expression

DaveyC

  • Senior Community Member
  • Posts: 165
  • Hero Points: 9
Re: ISPF FIND command not working as expected
« Reply #2 on: February 15, 2010, 02:12:18 pm »
Good eye!