NetTalk Central

Author Topic: Please help with syntax error..  (Read 2257 times)

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Please help with syntax error..
« on: December 29, 2010, 11:39:46 PM »
Working on a NT web app created by another developer.

App uses NetTalk 4 (last build..I forget the number).
Clarion 6.1 9033
Windows XP Pro

Getting a syntax error on this code:

p_web.SetSessionValue('DOG:Sex',p_web.dFormat(p_web.GetValue('Value'),@P^P))

Error is:  Expression cannot be picture.  So I know it has something to do with the @P^P.

Thanks!
Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: Please help with syntax error..
« Reply #1 on: December 29, 2010, 11:48:53 PM »
@P^P
should be in quotes
'@P^P'

If this is generated code, check the picture setting for the field.

Cheers
Bruce

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Please help with syntax error..
« Reply #2 on: December 30, 2010, 12:06:58 AM »
I thought it was hand code but - no - it's generated.

The field in question is in a form as a "drop."  I do not recall seeing a picture setting...?

Thanks Bruce for the quick reply!! Awesome customer support!  Love it!

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: Please help with syntax error..
« Reply #3 on: December 30, 2010, 12:19:35 AM »
change the field to a String, clear the pic, and change it back to a drop.

cheers
Bruce

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Please help with syntax error..
« Reply #4 on: December 30, 2010, 07:44:53 AM »
Thanks Bruce!  As always..u da man!!!
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11