VishalMistry
13th April 2012, 11:36
Hi,
I want to select records from specific table based on some pattern in item code. Like item code containing characters RM06CH (given on form). I am writing statement like:
recs = 0
opro = shiftr$(opro)
select tcibd001.*
from tcibd001
where tcibd001._index4 inrange {:citg, :mitm.f} and {:citg, :mitm.t}
and tcibd001.item like "%" & :pattern & "%"
selectdo
recs = recs + 1
| create.routing.record()
| create.operation.record()
endselect
message("records matching pattern:" & str$(recs))
pattern is a form variable of domain tcseak (search key).
But no luck. Can anybody guide, how this can be done ?
Vishal
I want to select records from specific table based on some pattern in item code. Like item code containing characters RM06CH (given on form). I am writing statement like:
recs = 0
opro = shiftr$(opro)
select tcibd001.*
from tcibd001
where tcibd001._index4 inrange {:citg, :mitm.f} and {:citg, :mitm.t}
and tcibd001.item like "%" & :pattern & "%"
selectdo
recs = recs + 1
| create.routing.record()
| create.operation.record()
endselect
message("records matching pattern:" & str$(recs))
pattern is a form variable of domain tcseak (search key).
But no luck. Can anybody guide, how this can be done ?
Vishal