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



Hans, Barb, ...
 
I just came across an interesting bug in my code. (see below)  I have a
function which returns a value and assigning that value to an array element.
I had not indexed the array correctly so the function was being "called" for
each element. It was finally failing because not all of the storage for the
array was allocated. I assume, altho I have not tried it, that if the array
would have been fully allocated that all elements would have been assigned a
return value from individual function calls.
 
The question would be: Is this an intended feature and can I expect this
result in the future? 
I'm currently on V5R2M0.
 
 
/Free // This code calls the buildFunctionStruct-Procedure for each
task.FunctionStructure element
 
task.FunctionStructure = buildFunctionStruct(taskName);
 
/End-Free
 
/Free // This is the corrected code which calls the
buildFunctionStruct-Procedure once (my intended result)
 
task.FunctionStructure(x) = buildFunctionStruct(taskName);
 
/End-Free
 
 
Duane
 
 
 



NOTICE: This electronic mail transmission may contain confidential
information and is intended only for the person(s) named.  Any use, copying
or disclosure by any other person is strictly prohibited. If you have
received this transmission in error, please notify the sender via e-mail.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.