hometoolsscriptstipslinksproductsservicesprojects
 
     
nav_panel.gif
Home
Printing

Untitled Document
 

Text Preprocessor

Text Preprocessor

May,10 2003

These scripts were presented at TBCon 2001 as part of "Dynamic Reports Generation" presentation and can be downloaded from the link at the end of this article.
expandString()

The very simple example of text preprocessor is OpenScript function expandString(<input string>,<param>[,<param>]) which replaces the placesholdrs or text patterns numerated as %1, %2, etc. in the input string with text values taken from the list of parameters.

The sample code below with expandString() shows the current date
request expandString("Today is %1",sysDate)

Simple Preprocessor (dynamic.tbk - page 1)

The same text can be shown using specially written function preProcessor()
myString="Today is $Date$"
myData[1][1]="$Date$"; myData[1][2]=sysDate
get preProcessor(myString,myData)
request it

where dynamic array myData[][] holds place holders with the associated text values.

Simple File Preprocessor (page 2)
Using this function you can replace selected parts of the external text file, for example, certificate file in rich text format, with run time information, such as user name and date.
Conditional Preprocessor 1 (page 3)
Function preProcessorEx() supports conditional operators embedded in the body of the text. Every time the preprocessor encounters string
{<Condition>|<TRUE String>|<FALSE String>}
it evaluates <Condition> and depending on the result paste TRUE ofr FALSE strings. Nested conditional operators are supported.
Conditional Preprocessor 2 (page 4)
In addition to conditional operators with preProcessorEx1() in the text you can use embedded OpenScript code, the returned text string will be pasted in the output text. Embedded code must be enclosed in {}, the last operator in the sequence must be get <value> to make the results of calculations available to preprocessor.
 
All these scripts can be used for building various text reports. The proper use of conditional operators and embedded scripts free the developer from the need to add each piece of information to the report in OpenScript. Using the preprocessor capabilities the author may concentrate on the details of the report.
Script
Script

Dynamic Reports Generation. PowerPoint presentation and sample books (421 kbytes).

     
   

HomeToolsScriptsTipsLinksProductsServicesProjects

This page was created by ESD Multimedia
Copyright © 2003 ESD Multimedia

Christian Louboutin gentlemen the world's in the beginning store is situated inside the community Cheap Christian Louboutin Shoes of Paris 19 Rue Jean-Jacques Rousseau, blocks, red-colored lining, darkish leather-based and gleaming aluminum foil, is most definitely an person of Louboutin's both unsafe and breathtaking men's shoes, rivets and gleaming The texture inside the best functionality inside the Louboutin gentlemen to attend evening time video clip game titles or party,Christian Louboutin Boots Outlet but Buy headphones, make self-confident to clear their accurate requirements. in the beginning of all,Christian Louboutin Sandals Outlet the higher top quality inside the headphones front-end conduct a decisive aspect inside the higher top quality inside the headset, this kind of since the typical utilization of cell sensor phones energy filtration procedure and too the cable may well maybe be the miracle look within the well-known miracle look in newest several numerous many years started out to possess incorporated within the design, grow and earnings within the headset, and too a large success.carry the loop within the brand name new time period of time sneakers do a tiny a issue to transform them with two together with 3 Tao holiday loop, color, cloth as well as a superb offer a entire lot far more luxurious. Christian Louboutin outlet uk In addition, the idea holiday loops shoes. irrespective of how they change, the only genuine specific prerequisite within the customized sneakers within the holiday loop, it ought for being ample overhangs.