Normal Topic performing simple tasks (Read 1086 times)
Mathew Verghese
Member
*
Offline


Always willing to learn

Posts: 15
Location: Kuwait
Joined: Jan 12th, 2004
performing simple tasks
Jan 17th, 2004 at 6:18pm
Print Post Print Post  
In Q&A we could perform arithmetic calculations with ease.  In a form the fileds required will be numbered.  For example - we wish to muliply field #1 with field #2 and the result in field #3 - the formula entered in field #3 is #3=#1*#2.  How can we do that simple thing here in the Sesame.  Please explain.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: performing simple tasks
Reply #1 - Jan 17th, 2004 at 6:57pm
Print Post Print Post  
You do the same thing, but you don't need to number everything first. You just use the element names in your programming:

Total = Price * Quantity
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
layers
Member
*
Offline


No personal text

Posts: 31
Joined: Jan 2nd, 2004
Re: performing simple tasks
Reply #2 - Jan 17th, 2004 at 11:18pm
Print Post Print Post  
Just make sure your  fields are formatted as numbers.
Example from a real rookie (me)
BALANCE = PURCHASES - (PAYMENTS + CREDITS)
Works for me but won't work if your fields are set as text as I found out . Will "ADD" text to make 1 line,just won't "SUBTRACT" text.
Grin
  
Back to top
 
IP Logged
 
Mathew Verghese
Member
*
Offline


Always willing to learn

Posts: 15
Location: Kuwait
Joined: Jan 12th, 2004
Re: performing simple tasks
Reply #3 - Jan 18th, 2004 at 11:46am
Print Post Print Post  
Thanks for clearing my doubts.  I would also like to know how to add images in the filed formatted for images on the form.  Please explain.
Thank you
Mathew
  
Back to top
 
IP Logged
 
Alec
Lanticans
*****
Offline



Posts: 200
Location: Ascot, England, UK
Joined: Nov 22nd, 2002
Re: performing simple tasks
Reply #4 - Jan 18th, 2004 at 1:35pm
Print Post Print Post  
Quote:
 I would also like to know how to add images in the filed formatted for images on the form.  Please explain.

This is described in the User Guide on pages 165-166 & 217-221
  

Alec
Back to top
IP Logged