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

RE: Question about parm size



That worked perfect!  Thank you. 

Teri Hughes
Programmer/Analyst
Prime, Inc.
2740 N Mayfair
Springfield, MO 65803
(417)521-3342 - work
thughes@xxxxxxxxxxxx


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Tuesday, April 02, 2013 3:43 PM
Cc: 'ftpapi@xxxxxxxxxxxxxxxxxxxxxx'
Subject: Re: Question about parm size

Hi Teri,

You can use WEBFORM_setPtr() for this task.  This routine allows you to specify up to 16 mb of data in a web form variable.  It uses pointers in order to remove the limitations in size that the other routines might have -- so it's a little trickier to call, but it will do what you want.

     WEBFORM_setVar( myForm
                   : 'webVarName'
                   : %addr(your1900var)
                   : %len(%trimr(your1900var)));

If your variable is VARYING, then change %ADDR() to
%ADDR(yourvar:*data)  (or %addr(yourvar)+2 if on V5r4 or earlier).

Good luck!


On 4/2/2013 3:08 PM, Teri Hughes wrote:
>
> I'm using WEBFORM_SetVar and WEBFORM_postData but I need peValue to be 
> bigger...up to a maximum of 1900.  I know we really shouldn't modify 
> the source in HTTPAPI_H.  Is there another method I should use to 
> accomplish passing a field that size?
>
> Teri Hughes
>
> Programmer/Analyst
>
> Prime, Inc.
>
> 2740 N Mayfair
>
> Springfield, MO 65803
>
> (417)521-3342 -- work
>
> thughes@xxxxxxxxxxxx <mailto:thughes@xxxxxxxxxxxx>
>
> ----------------------------------------------------------------------
> --
>
> If you would prefer not to receive further e-mails from Prime Inc., 
> please FORWARD this email to postmaster@xxxxxxxxxxxx and put 
> unsubscribe in the subject or message body. Before printing this 
> email, please verify it is necessary.
>
> This email and any files transmitted with it are confidential and 
> intended solely for the use of the individual or entity to whom they 
> are addressed. If you have received this email in error please reply 
> to the sender of the message.
>
> The views expressed in this correspondence may not reflect the views 
> of Prime, Inc.
>
> This footnote also confirms that this email message has been scanned 
> for the presence of computer viruses.
>
> ----------------------------------------------------------------------
> -- Prime Inc, 2740 N Mayfair Ave Springfield, MO 65803

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