James: try the following:

SET VAR v1 int = 15
SET VAR vcomm = ('PLUGIN Num2Wrd.RBL vResult|' + CTXT(.v1))
&vcomm

Javier,

Javier Valencia, PE
President
Valencia Technology Group, L.L.C.
14315 S. Twilight Ln, Suite #14
Olathe, Kansas 66062-4578
Office (913)829-0888
Fax (913)649-2904
Cell (913)915-3137
================================================
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material.  Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from all system and destroy all copies.
======================================================

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of James Hageman
Sent: Wednesday, February 09, 2005 11:07 AM
To: RBG7-L Mailing List
Subject: [RBG7-L] - Re: Using Num2Wrd.RBL PLUGIN in R:BASE 7.x and V-8

That's neat but how do you pass a variable to the plugin.

I tried :
 >set v v1 int = 15
 >PLUGIN Num2Wrd.RBL vResult|.v1
and got.
vResult          = -ERROR-          TEXT








A. Razzak Memon wrote:

> At 11:34 AM 2/8/2005, Jan Barley wrote:
>
>> Is there an RBase function to convert an integer to its text
>> equivalent?  I want a report to write out "For the six months
>> ending..." rather than "For the 6 months ending".  Have I
>> overlooked a function?
>
>
>
> Jan,
>
> Here's an early Valentine's gift for you from the RBTI Dream Team!
>
> File: Num2Wrd.RBL PLUGIN (an in-house production)
> Desc: To convert numbers to words
> URL: http://www.razzak.com/sampleapplications (Item 025)
>
> Contents: Num2Wrd.RBL and Num2Wrd.TXT
>
> Steps:
>
> 01. Copy Num2Wrd.RBL in RBG7.EXE or RBG75.EXE or RBG8.EXE directory
>     For example:
>
>     C:\RBTI\RBG7
>     C:\RBTI\RBG75
>     C:\RBTI\RBG8
>
> 02. Start RBG7, RBG75 or RBG8
>
> 03. At the R> Prompt, type the following:
>
>     PLUGIN Num2Wrd.RBL vResult|214
>
>     SHOW VARIABLE vResult
>
>     The variable vResult will include the text version of 214, as:
>     two hundred and fourteen
>
>     You may use ICAP1, ICAP2, LUC functions to manipulate the text
>     result as you wish.
>
>     Example 01:
>
>     PLUGIN Num2Wrd.RBL vResult|214
>     SET VAR vResult = (ICAP1(.vResult))
>     -- vResult = Two hundred and fourteen
>
>
>     Example 02:
>
>     PLUGIN Num2Wrd.RBL vResult|214
>     SET VAR vResult = (ICAP2(.vResult))
>     -- vResult = Two Hundred And Fourteen
>
>
>     Example 03:
>
>     PLUGIN Num2Wrd.RBL vResult|214
>     SET VAR vResult = (LUC(.vResult))
>     -- vResult = TWO HUNDRED AND FOURTEEN
>
> Imagine the possibilities!
>
> Very Best R:egards,
>
> Razzak.

.

Reply via email to