Normal Topic form result command (Read 346 times)
debmckee
Full Member
***
Offline



Posts: 123
Joined: Oct 5th, 2011
form result command
Feb 1st, 2012 at 7:19pm
Print Post Print Post  
I am just learning and I kind of program directly from the samples in the manual.

This is the command I am trying to enter,

var vCnt as int
var vloop as int
var vMytotal as Double

vmytotal = 0
vcnt = @formResultSetTotal("lot details")
vloop=1
while vloop <= vcnt

{
vmytotal =(vmytotal + @tonumber(@formfieldvalue("lot details", "qty",vloop))

vloop = vloop + 1

}

Lot Balance = vMyTotal

It tells me there is an error at the point of:

vloop = vloop + 1

with a notation of "indentifier" referring to vloop
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: form result command
Reply #1 - Feb 1st, 2012 at 7:33pm
Print Post Print Post  
The line:

Code
Select All
vmytotal =(vmytotal + @tonumber(@formfieldvalue("lot details", "qty",vloop))
 



has three open perenthesis and only two close perenthesis.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
debmckee
Full Member
***
Offline



Posts: 123
Joined: Oct 5th, 2011
Re: form result command
Reply #2 - Feb 1st, 2012 at 7:39pm
Print Post Print Post  
Thanks!  I must have looked at it for 10 minutes....
  
Back to top
 
IP Logged