× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Steve Richter wrote:
-----Original Message-----
From: rpg400-l-admin=Zwy7GipZuJhWk0Htik3J/w@public.gmane.org [mailto:rpg400-l-admin@midrange.com]On
Behalf Of Hans Boldt

You want data pointers? Program in MI. But in practice, over the
past 20 years, I can only think of one place where I've ever seen
data pointers put to use.
Hi Hans,

Would that one place be a web appl where the requirement is to parse form
posted StdIn variables and copy them to an array of data pointers that
represent variables of various types in the html page processing program?
Possibly two arrays are passed to a common procedure. The first is an array
of data pointers, the 2nd is an array of form field names that the stdin
stream is to be searched for.
No. The one place I've seen data pointers used was in the
implementation of the run-time routine for handling GDDM calls in
RPG III. If it weren't for the fact that RPG III didn't support
float numeric data, allowing for conversion of all numeric parms on
GDDM calls would have been a bit of overkill.

If this scenario is not what you have in mind, do you consider it to have
merit?
No. You still have to validate and store each value individually
anyways. And since the compiler knows the attributes of the target
variables at compile-time anyways, there is little to be gained by
deferring the type determination to run-time.

I think I understand what you're suggesting. But since the
validation for each input value is unique anyways (generally), you
still have to handle the inputs one by one. (You *are* validating
*all* of your CGI inputs, aren't you?)

Cheers!  Hans  (2 days left to my LOA!)





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.