Struggling with API QDFRTVFD

Jevgeni Astanovski <[email protected]>
Newsgroups gmane.comp.lang.as400.c
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.