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



 >> I pass the pointer to a C function to store it's result, and get in the
return value the actual length it stored in there.  Only then I can change
the length.

 >> Anyway, solved it with a 5U 0 field overlayed on the varying field...
but I had the impression that this worked before.

Paul - the other answers you received are correct in that you need to set
the length before you start.  My question to you is why one earth do you
want to do this much work?

If you need to pass a string pointer to a C function use the
Options(*String) on the proto and the compiler does the work for you.  If
(as seems to be the case here) you are simply passing a pointer and the
function places a string in that location, then all you need to do is use
%Str to de-reference the pointer and you can load the data into a fixed or
variable length field.

In your case:

 Buffer = %Str(pFixed);

appears to be what you need.  Is there a reason why this won't work for you?



Jon Paris
Partner400




As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.