From: Jim Menard Date: 2003-03-11T00:25:18+09:00 Subject: Re: ruby - datavision formula script Jody Thigpen writes: > I'm trying to set up a formula in datavision that just takes the value of > a field and divides it by 100. I've never used ruby before but have been > digging through the online docs for help, but I'm sitll not getting what > I need. I've tried many variations on the following: > > {echo "{table.field / 100}"} Use "{table.field} / 100" without the quotes. The text "{table.field}" is replaced by the value of that field, then that number is divided by 100. You don't need to print or echo the result; the number *is* the result. Jim -- Jim Menard, jimm@io.com, http://www.io.com/~jimm/ "If the Computer is a universal control system, let's give kids universes to control." -- Theodore H. Nelson (1974)