Comparing a substring to a substring

Darren Reely darren.reely@latticesemi.com
Tue, 05 Mar 2002 09:46:39 -0800


Do you mean this:

  define a char*10 = 'ABCDEFGHIJ'
  define b char*10 = 'ABCDEFGHIJ'
  define c num = index(b[1:5],a[2:3])
  report all

Darren


Leonard_Berkowitz@harvardpilgrim.org wrote:
> 
> (Powerhouse 8.19C on the HP3000)
> 
> I need to determine whether a substring in data item A exists as a
> substring in data item B. I am familiar with:
> 
> IF 0 < INDEX (data item B, substring)