Hi,
I think you should assign the value of PRO: name to the StringTheory object, like: st.setvalue(PRO:name)
Then do:
if st.startswith(loc:value) then cyle end , or
if st.startswith(p_web.gsv('loc:value')) then cycle end , (depending on the fact if loc:value is a sessionqueue value or not).
I do not understand your loop construction but i guess you can figure that out. (All I see is a SET with no NEXT ).
I also have doubts on whether the server side code is the right place for your filter but as far as the "startswith" is concerned, I think that is the way to do it.
Kind regards,
Ren?