split

Post Reply
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

split

Post by gaurav.shetti »

I am trying to split a string which is of this form
$jtitle : string1$$string2

But when i am using
split ROW MAX=1 "$$" $j_title
to get the first value ... its is printing the entire string.. Is it not picking $$ value in split function ???
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

split

Post by John »

$ is a shorthand for end of line. You can either escape or use hex code, e.g.

\x24\x24

or \$$\$$

as the $ needs to be escaped both to REX and Vortex.
John Turnbull
Thunderstone Software
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

split

Post by gaurav.shetti »

can you help me the same for sum %s command ..
i want to append $$ between 2 vairables
like <sum %s $a " $$ " $b>
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

split

Post by mark »

That should work but you need twice as many $'s as desired because of vortex escapement. So if you want 2 use 4:

<sum %s $a " $$$$ " $b>
Post Reply