Text Data Calculation

Text_merge  report_generator 

Text Data Calculation

Example:

Calculate area of triangle

Text data calculation

Replace Procedures:

1. ctrl-o open source text file

2. ctrl-h open replace window

* set 'replace unit' to 'Line'

* set 'replace with pattern' to:

Area of triangle \($A,$B,$C\) is calc(sqrt($P*($P-$A)*($P-$B)*($P-$C)),'.2f')\n

* click 'Advanced' page, set 'Run following for each matched unit' to:

($A,$B,$C)=($match[1],$match[2],$match[3]);

$P=($A+$B+$C)/2;

3. click 'replace', done.

4. ctrl-s save to file.

Notes:

For batch replace files, please refer to Replace Pioneer help manual.


', '>',$fString); $fString = str_replace( '<', '<',$fString); $fString = str_replace( chr(32), ' ',$fString); $fString = str_replace( chr(13), ' ',$fString); $fString = str_replace( chr(10) & chr(10), '
',$fString); $fString = str_replace( chr(10), '
',$fString); } return $fString; } function show_pages($page,$MaxPage,$colname_rs) { echo " Page:$page/$MaxPage    "; if ($MaxPage<=1) {return;} echo "Goto: "; if ($page>1) { $prevPage=$page-1; echo "\"Previous  "; } for($p=$page-10;$p<=$page-1;$p++) { if ($p>0) { echo "$p ";} } echo "$page "; for($p=$page+1;$p<=$page+10;$p++) { if ($p<=$MaxPage) { echo "$p ";} } if ($page<$MaxPage) { $nextPage=$page+1; echo " \"Next "; } echo ""; } //$dbid = mysql_connect($hostname,$dbuser,$dbpasswd) or die(""); //mysql ServerNorthWind //$db = mysql_select_db("mindp9_test",$dbid) or die(""); //SQL $query = "SELECT * FROM ("; for($i=0;$i $MaxPage) $page=$maxPage; ?>

Other Examples of "" " .HtmlEncode($arr[2]).""; } //if }//for echo "
"; }//if ?> Search all "" examples