[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Question Re WEBFORM_SetVar



Scott,

I looked at my debug in the last message sent to you and see that I should have added 2 to the Address not to the length.

When I add 2 to the address it removes the first two characters that should not have been sent:

%01%A3

Don't know what the above 2 characters are but I should not have sent it as part of xmldata.


My code is as follows:
c                   callp     WEBFORM_setPtr(Form: 'xmldata'   
c                                     : %Addr(xmldata) + 2     
c                                     : %len(%trimr(xmldata)))

Bruce



-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Tuesday, February 10, 2015 8:33 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Question Re WEBFORM_SetVar

Why are you adding 2 to the length?

On 2/10/2015 10:17 AM, Anthony, Bruce wrote:
> Mike,
>
> Thank you.  I had to make a minor change as follows:
>
> c                   callp     WEBFORM_setPtr(Form: 'xmldata'
> c                                     : %Addr(xmldata)
> c                                     : %len(%trimr(xmldata)) + 2)
>
> The above works great and you made my day!
>
> Thank you,
>
> Bruce
>

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------