Calculations in TextPipe Pro?

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Ian

Calculations in TextPipe Pro?

Postby Ian » Sat Nov 13, 2004 2:35 pm

Wondering if there are any sample scripts or 'easy' ways to do calculations?
Now I use Excel (Mac OS), but it would be nice if everything could be done in TextPipe Pro.

E.g. Want to add a number (130) to a tab delimited column of variable numbers.
-------------------------
524 +130 = 654
1500 + 130 = 1630
80 + 130 = 210
5 + 130 = 135
-------------------------


Any suggestions much appreciated.

Ian @ Ashiya, Japan

User avatar
DataMystic Support
Site Admin
Posts: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Mon Nov 15, 2004 4:26 pm

Easy!

First use a tab field restriction. Inside it, use a Script filter to write a one line of code to perform your calculation.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

Ian

Postby Ian » Tue Nov 30, 2004 11:56 pm

Done.
4,000+ calculations etc. a day in a matter of seconds. Great! :D

Thanks,
Ian


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: Bing [Bot] and 8 guests