At 11:55 PM 2/19/2003 -0500, Thomas Cimicato wrote:
I need a special DLL/UDF or .EXE program for a RBG7 program to get the character count of a MS Word file ...
Thom,
It would be really coooooooooool if there was a Plugin (WCCountRBL.RBL) and/or UDFs (WCountUDF.DLL and CWCountUDF.DLL) for R:BASE 7.0 for Windows to do the following:
====== Plugins ====== Such as WCCountRBL.RBL to get the "Word" as well as "Character" count from ANY MS Word Document.
Syntax: PLUGIN 'PluginName' 'VariableName|DocumentName.DOC|Option'
Where Option = "C" for Character Count or "W" for Word Count. If no option specified, the default will be "Word" count.
Example 01:
PLUGIN 'WCCountRBL.RBL' 'vCount|D:\MyDocument.DOC'
The variable vCount will return the INTEGER value of Word count from MyDocument.DOC on D:\ drive.
Example 02:
PLUGIN 'WCCountRBL.RBL' 'vCountC|D:\MyDocument.DOC|C'
The variable vCountC will return the INTEGER value of Character count from MyDocument.DOC on D:\ drive.
Example 03:
PLUGIN 'WCCountRBL.RBL' 'vCountW|D:\MyDocument.DOC|W'
The variable vCountW will return the INTEGER value of Word count from MyDocument.DOC on D:\ drive.
====== UDFs ====== Such as WCountUDF.DLL and CWCountUDF.DLL to get the "Word" and "Character" count respectively from ANY MS Word Document.
Example 01:
SET VAR vWCount = (UDF('@WCountUDF.DLL','D:\MyDocument.DOC'))
The variable vWCount will return the TEXT value of Word count from MyDocument.DOC on D:\ drive
Example 02:
SET VAR vCCount = (UDF('@CWCountUDF.DLL','D:\MyDocument.DOC'))
The variable vCCount will return the TEXT value of Word count from MyDocument.DOC on D:\ drive
These are simple examples of extending the POWER of R:BASE 7.0 (update 37 and higher...) using the Plugins and UDFs.
Remember, if you can dream it you can do it!
Very Best Regards,
Razzak.

