hola amigos como hago para sacar un dato entre dos simbolos tengo esto
selec ALLTRIM(str(a.topoliza))+','+alltrim(str(b.codigoap))+';'+alltrim(str(b.codigovg))+'*'+alltrim(str(b.depende))+'?'+;
alltrim(a.tonombre)+'!'+alltrim(a.toapell1)+'¡'+alltrim(a.toapell2)+'¿'+alltrim(str(a.tocc))+'='+alltrim(a.tofecnac)+'^'+ ;
alltrim(a.todirec)+alltrim(str(a.tociudad))+'\'+alltrim(str(a.tocdpto))+'/'+alltrim(str(a.totelef)) as datos, ;
c.beneficiar as beneficiario,ALLTRIM(c.benombre)+','+ALLTRIM(c.beapell1)+';'+ALLTRIM(c.beapell2)+':'+ALLTRIM(STR(c.beporce))+')'+ ;
alltrim(STR(d.pacodigo)) ;
from tomador a,polizas b,beneficiarios c,parentesco d where a.topoliza=b.codigo AND a.tocc=c.tocc and d.panombre=ALLTRIM(c.beparent) ;
into cursor tabla1
lo que deseo hacer ejemplo es que
a=dato q esta entre , y ; y asi sucecivamente. gracias.
-----------------
hi how i make to put data that between two simbols i've this
selec ALLTRIM(str(a.topoliza))+','+alltrim(str(b.codigoap))+';'+alltrim(str(b.codigovg))+'*'+alltrim(str(b.depende))+'?'+;
alltrim(a.tonombre)+'!'+alltrim(a.toapell1)+'¡'+alltrim(a.toapell2)+'¿'+alltrim(str(a.tocc))+'='+alltrim(a.tofecnac)+'^'+ ;
alltrim(a.todirec)+alltrim(str(a.tociudad))+'\'+alltrim(str(a.tocdpto))+'/'+alltrim(str(a.totelef)) as datos, ;
c.beneficiar as beneficiario,ALLTRIM(c.benombre)+','+ALLTRIM(c.beapell1)+';'+ALLTRIM(c.beapell2)+':'+ALLTRIM(STR(c.beporce))+')'+ ;
alltrim(STR(d.pacodigo)) ;
from tomador a,polizas b,beneficiarios c,parentesco d where a.topoliza=b.codigo AND a.tocc=c.tocc and d.panombre=ALLTRIM(c.beparent) ;
into cursor tabla1
i wich this
a=between data , and ;
Daniel Vargas.
MCP - Microsoft Certified Professional
"El callar y escuchar es cosa de sabios por ello nuestro grito nace de silencio consciente fuerte y elocuente... vivir de manera diferente es morir siendo libre"
Elkin Ramirez-Kraken
My Blog