Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: pl/sql

Re: pl/sql

From: <ramirez134_at_my-deja.com>
Date: Wed, 31 Jan 2001 10:57:50 GMT
Message-ID: <958r3c$1kb$1@nnrp1.deja.com>

In article <3A6816C0.E4518408_at_bill.mts.ru>,   Valery Yourinsky <vsu_at_bill.mts.ru> wrote:

> CREATE OR REPLACE PROCEDURE vsu_word_search
> AS
> line CHAR(100) := 'that is fine yes it is';
> pat CHAR(10) := 'is';
> bacref owa_text.vc_arr;
> --
> has_match BOOLEAN;
> --
> BEGIN
> htp.htmlOpen;
> htp.headOpen;
> htp.title('word search');
> htp.headClose;
> htp.bodyopen;
> --
> -- No apostrophes!
> has_match := owa_pattern.match(line, pat, bacref);
> IF has_match = TRUE THEN
> --
> htp.p('has_match = TRUE'); htp.br;
> htp.p('bacref.COUNT='||bacref.COUNT); htp.br;
> htp.p('bacref.FIRST='||bacref.FIRST); htp.br;
> htp.p('bacref.LAST='||bacref.LAST); htp.br;
> ---
> IF bacref.COUNT > 0 THEN
> FOR K IN bacref.FIRST .. bacref.LAST LOOP
> htp.p('K='||K||' "' ||bacref(K)||'"');
> htp.br;
> END LOOP;
> END IF;
> END IF;
> END;
> /

I am sorry but it did not work. Is there something that I dont understand? Program returns that has_match is TRUE, but that bacref.COUNT = 0
so the array is still empty

Rami Huhtala

Sent via Deja.com
http://www.deja.com/ Received on Wed Jan 31 2001 - 04:57:50 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US