Howdy friends and neighbors! 
Here's my problem... which I sorta fixed for now, but I'm curious to know if anyone knows anything about this...
I have a dfb that has multiple records of all types. One of the field is called
which is of C(5).
At one point, I need to know how many of those 14000 records contain something specific (for example, "01.A0"
So I had
It always returned 0. Yet, I knew some records matched the search string... so I started playing around a little... and what I found was that I had to
my field.
or
were not sufficient, it had to be
.
Any idea why?? Am I not comparing a C(5) memory variable to a C(5) field?? Should it not match without the
?
Cheers,
Realm174
Here's my problem... which I sorta fixed for now, but I'm curious to know if anyone knows anything about this...
I have a dfb that has multiple records of all types. One of the field is called
Code:
calltype
At one point, I need to know how many of those 14000 records contain something specific (for example, "01.A0"
So I had
Code:
store space(5) to m.searchstring
@10,10 say "Enter the search string: " get m.searchstring picture "@!"
count all for calltype=m.searchstring to m.nbfound
It always returned 0. Yet, I knew some records matched the search string... so I started playing around a little... and what I found was that I had to
Code:
alltrim
Code:
ltrim
Code:
rtrim
Code:
alltrim
Any idea why?? Am I not comparing a C(5) memory variable to a C(5) field?? Should it not match without the
Code:
alltrim
Cheers,
Realm174