At 10:54 AM 1/15/2009, Paul Buckley wrote:

I'm looking for a slick way to find a words relative
position by word count.

If anyone has any suggestions or insight I would greatly
appreciate it.


Paul,

Use the new "RWP" string manipulation function in R:BASE!

Syntax: (RWP('text string','actualword'))

RWP = Relative Word Position

Here's how:

01. Start R:BASE 7.6 for Windows (Build: 7.6.6.30214)
    or R:BASE Turbo V-8 (Build: 8.0.20.30214)
    or R:BASE eXtreme 32 (v9.0) (Build: 9.0.1.10214)
    or R:BASE eXtreme 64 (v9.0) (Build: 9.0.1.10214)
    http://www.rupdates.com

02. Try the following three examples and see what you get.

    -- Example 01:
    SET VAR vRWP = +
    (RWP('Imagine the Possibilities','Possibilities'))

    Variable vRWP will return the integer value of 3.

    -- Example 02:
    SET VAR vRWP = +
    (RWP('This is the R:BASE you have always wanted!','always'))

    Variable vRWP will return the integer value of 7.

    -- Example 03:
    SET VAR vRWP = +
    (RWP('Keep in mind that nothing is impossible','nothing'))

    Variable vRWP will return the integer value of 5.

That's all there is to it!

Very Best R:egards,

Razzak.


Reply via email to