That was EASY! OMGosh! I k-new it was something and on top of that I find out the use of 2,3,4 on top of that BONUS!
Thank You Again --- you saved my day. Sincerely, Paul Dewey -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of A. Razzak Memon Sent: Thursday, April 02, 2009 6:59 PM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: RWP throws errors 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.

