NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: DonRidley on December 29, 2010, 11:39:46 PM

Title: Please help with syntax error..
Post by: DonRidley 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
Title: Re: Please help with syntax error..
Post by: Bruce 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
Title: Re: Please help with syntax error..
Post by: DonRidley 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
Title: Re: Please help with syntax error..
Post by: Bruce 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
Title: Re: Please help with syntax error..
Post by: DonRidley on December 30, 2010, 07:44:53 AM
Thanks Bruce!  As always..u da man!!!