Re: Struggling with API QDFRTVFD
Mark S Waterbury <[email protected]>
| Newsgroups | gmane.comp.lang.as400.c |
|---|---|
| Organization | ISS |
| Message-ID | <[email protected]> |
Jeygeni:
Search the InfoCenter page for QDFRTVFD for "Named Field Header Table
(QDFFFNAM) -- see position 4 WDFFPLEN ... this should be the length of
the field as defined in the buffer(s) -- as your programs will see it.
Note that the next field in this data structure is the number of decimal
places (WDFFDEC). If you want the length of the field when it is
displayed on the screen, see the "Field Indexing Table" (QDFFFITB),
offset 6 - WDFFDLEN ...
If you do a google search for "QDFRTVFD API" (without quotes) you can
also find several helpful articles that discuss using this API.
Hope that helps,
Mark S. Waterbury
> On 1/22/2014 8:53 AM, Jevgeni Astanovski wrote:
> Hi,
>
> I've spent 3 full days fighting with API QDFRTVFD (Retrieve Display File Description).
> People say that it is one of the most (if not the most) complicated APIs to use.
>
> So far so ALMOST good.
>
> My goal is to retrieve output, both and hidden fields from all formats together with their names, types and sizes.
> I cannot use much simplier QUSLFLD, as there is no information about the field "attribute" - output/hidden/both - and I need it.
>
> I've got ALMOST everything I needed.
>
> The only thing that I cannot find is field length!
>
> For example if my DSPF's DDS contains row
> VERSION 3A O 1 11TEXT('Program version')
> then I would like to get "3" from somewhere.
>
> All the rest (field name, data type, field type, position on screen) I found, but not the length.
> The only thing that looks similar is field offset in the buffer, but it would be stupid to sort and subtract.
>
> Does anyone know what structure of this API keeps field data length?
>
> Thanks in advance,
>
> Jevgeni
--
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list
To post a message email: C400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.