Normal Topic how to increment id count (Read 328 times)
FSGROUP
Full Member
***
Offline


No personal text

Posts: 179
Location: Edmonton, Alberta, Canada
Joined: Jan 14th, 2004
how to increment id count
Apr 17th, 2004 at 5:13pm
Print Post Print Post  
i am still having problems incrementing an ID variable.  i am running Sesame 1.0.3. i always seem to get the same id number over and over again whilst in Add mode.  any clues? thanx

this is the code in OnForm Entry for a form:

var vID as Int


// adding new Client record
if @IsNew OR ID="" or @Add then

     
       vID=@tonumber(@XLR(@fn,99999999,"ID","ID"))
       ID=vID+1

}   
  
Back to top
IP Logged