Normal Topic Dumb question re: programming (Read 591 times)
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Dumb question re: programming
Nov 30th, 2005 at 8:53pm
Print Post Print Post  
I'm looking at the new (December) Inside Sesame (and a quick Thank You to Tom for the UDF's) and have what is probably a very basic question about something on page 4.

The top section has the programming statements:
Quote:
//Do the math
vTotal += @TM(@("Amt" + n))


What does "+=" do, and what does the @ inside the parenthesis do?

Thanks.
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Dumb question programming
Reply #1 - Nov 30th, 2005 at 9:02pm
Print Post Print Post  
Hello,

The += is the same thing as saying "vTotal = vTotal +". It basically just says add whatever comes after the assignment operators to the value that is in that variable already.

The @() is the same as saying @Field() which is on pages 168-169 of the 1.1 Programming Manual.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Dumb question programming
Reply #2 - Nov 30th, 2005 at 9:02pm
Print Post Print Post  
In the 1.1 Programming Guide:

+= page 45

@() page 168-169 - It's the abbreviation for @Field()
  

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


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Dumb question programming
Reply #3 - Nov 30th, 2005 at 9:26pm
Print Post Print Post  
Thanks Ray, Erika.
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Dumb question programming
Reply #4 - Nov 30th, 2005 at 9:32pm
Print Post Print Post  
You are welcome.
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged