[Info-vax] String Manipulation
VAXman- at SendSpamHere.ORG
VAXman- at SendSpamHere.ORG
Wed Oct 13 15:27:37 EDT 2021
In article <228ddd68-1659-4cdc-8fa5-790be45a82efn at googlegroups.com>, HCorte <hmmbcorte at gmail.com> writes:
>Have a string named MILLCON that contain "," as delimiter to split in two s=
>ubstrings have two aproches:
>
>1=C2=BA using routine ELEMENT from STR$
>
>STR$ELEMENT(MESSCON,0,",",MILLCON)
>STR$ELEMENT(IP_ADDRESS,1,",",MILLCON)=20
>
>2=C2=BA using routine INDEX and LEN from LIB$
>
>POS_AUX =3D LIB$INDEX(MILLCON,",")
>MESSCON =3D MILLCON(1:POS_AUX-1)
>IP_ADDRESS =3D MILLCON(POS_AUX+1:LIB$LEN(MILLCON)-(POS_AUX+1))
>
>is either aproach good or is there one bether and if so why?
Three:
LIB$TABLE_PARSE
--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG
I speak to machines with the voice of humanity.
More information about the Info-vax
mailing list