Re: SACEGO PROBLEM
Posted in 1993
Bob,
Your only problem when trying to search for the 9th character, is enclosing
your $var in quotes. The following works:
define
variable search_pattern char(50)
end
input
prompt for search_pattern using "Enter search pattern: "
end
select description
from species
where description[9,9] = $search_pattern
end
format every row end
Actually, Informix Tech Support is not 100% correct. We use matches with a
user input all the time in ace, we just have the user enter an actual search
pattern - stars and all. But in this case your search will be more efficient
without the matches anyway.
Good luck!
Cathy
+-------------------------------+----------------------------------------+
| Cathy Kipp | Internet: ckipp@vth1.vth.colostate.edu |
| Veterinary Teaching Hospital | |
| Colorado State University | Voice: (303) 491-1294 |
| Fort Collins, CO 80523 | Fax: (303) 491-1205 |
+-------------------------------+----------------------------------------+