At 04:44 PM 4/2/2009, Paul Dewey wrote:
I used the simple/sample,
SET VAR vRWP = (RWP('Imagine The Possibilities','Possibilities'))
And received two errors: Wrong number of arguments for RWP. (2147)
Expression cannot be evaluated. (2179)
RBase 7.6 7.6.6.30315 EE and the same without EE
Paul,
You are missing the required 3rd argument in your example.
Here's how to use the new RWP function using the latest updates
and builds of R:BASE 7.6, Turbo V-8, R:BASE eXtreme 9.0 (64), or
R:BASE eXtreme 9.0 (32):
SET VAR vRWP = (RWP('Imagine The Possibilities','Possibilities',1))
Notice the required 3rd argument to find the relative position of
given word.
-- Example 01:
SET VAR vRWP = (RWP('Look what we have done!','we',1))
The first relative position of given word "we" will be returned
as an integer value of 3.
-- Example 02:
SET VAR vRWP = (RWP('We have shocked the world and we will do it
again!','we',2))
The second relative position of given word "we" will be returned
as an integer value of 7.
That's all there is to it!
Very Best R:egards,
Razzak.