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



>Procedures can only export 1 value, however.  For the
>present, I have made 2 procedures and call them
>back-to-back.  It seems wasteful to me, however, as
>they will _always_ be used together.

Commonly, procedures that return a value are called "functions", like
X=SIN(90).  That's certainly one way to look at procedures, but not the only
way.  Sometimes you legitimately need to return multiple values, say
converting a street address to latitude/longitude.  My parameter convention
is input, modify, output, status, so I would have something like

callp cvtToLatLong (inpAddressStruc: outLat: outLon: errCode)

There's no right/wrong, but I strongly advise against EXPORT/IMPORT in
favour of explicit parameter declarations.  It makes future maintenance,
debugging and re-use so much easier.
  --buck


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.