× 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.



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


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.