NetTalk Central

Author Topic: Upgrading to NT 12. Trouble with decimal variable on a form.  (Read 1856 times)

Matthew51

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • Email
Upgrading to NT 12. Trouble with decimal variable on a form.
« on: December 17, 2020, 03:07:37 PM »
After upgrading to NT 12.02 I'm getting compile errors my forms with decimal values in the StoreMem Routine.
Code: [Select]
StoreMem  Routine
  If p_web.IfExistsValue('UsedFullAddress') = 0 and p_web.IfExistsSessionValue('UsedFullAddress') = 0
    p_web.SetSessionValue('UsedFullAddress',UsedFullAddress)
  Else
    UsedFullAddress = p_web.GetSessionValue('UsedFullAddress')
  End
  SubTotal = 14,2  ! decimal(14
  If p_web.IfExistsValue('SubTotal') = 0 and p_web.IfExistsSessionValue('SubTotal') = 0
    p_web.SetSessionValue('SubTotal',SubTotal)
  Else
    SubTotal = p_web.GetSessionValue('SubTotal')
  End

SubTotal is Decimal(14,2). I'm not sure why the point of "SubTotal = 14,2  ! decimal(14" is. Other variable types don't have a similar line.

Thank You
Matthew
Contractor with 10+ years of NetTalk experience looking for work.
www.linkedin.com/in/matthew-leavitt
BisWare.ca
Check out my free EasyTime Template

Vinnie

  • Full Member
  • ***
  • Posts: 175
    • View Profile
    • Email
Re: Upgrading to NT 12. Trouble with decimal variable on a form.
« Reply #1 on: December 17, 2020, 11:47:05 PM »
Hi Matthew

Bruce has fixed this for next release.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11186
    • View Profile
Re: Upgrading to NT 12. Trouble with decimal variable on a form.
« Reply #2 on: December 18, 2020, 10:56:27 AM »
yes, fixed in 12.03