From: Scott W. <swa...@my...> - 2002-02-05 13:33:57
|
If the script.txt file did not get included with your download of pilot-db, get a copy from the sourceforge repository: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pilot-db/db/docs/ this will tell you just about everything you might want to know about scripts. But the short answer to your question is: say field 0 and 1 are numbers (e.g. Integer, floats, boolean) then the script for field 2 would be: (- %1 %0) note that fields are zero indexed when they are referenced in the script with the '%' symbol. -Scott > Hi! > > How do I write a script for the "calculated" feature of DB? Let's say I > want to subtract colum 2 from colum 1 and have the difference show up in > colum 3. How do I write script to do that? > > Thank you for your help! > Rick -- |