|
>Has this always been like that ? > >DBuffer S 32767 Varying >DpFixed S * >DFixed S 32767 Based(pFixed) > > /free > pFixed = %Addr(Buffer) + 2; > Fixed = 'Hello'; > %Len(Buffer) = %Len(Buffer) + 5; > *INLR = *On; > Return; > /end-free > >Given this sample... I end up with Buffer containing 5 >blanks... and not my 'Hello' ? Paul, I think this has always been this way. When the program starts, Buffer contains 'undefined' data. When I set the length explicitly, the compiler initialises the string to blanks up to the new length (5 blanks.) This will work as you expect if you set the length prior to setting 'Fixed'. --buck
As an Amazon Associate we earn from qualifying purchases.
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.