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



It depends on what else I was using it for.

Most likely I would already have a variable defined for some other reason.
It might have been defined as 11p2, 5p2, 5i0, or whatever, it just
doesn't matter. I would just use the appropriate already defined
variable.
So let's say I had
MyFileVar (defined as some numeric, integer or something - size doesn't
matter)
and
MyWorkVar (defined as some numeric, integer or something - size doesn't
matter)

I could easily do
MyWorkVar=MySubprocedure(MyFileVar);

Since MySubprocedure defined it's input parameter as CONST, and the return
variable doesn't matter, then it will work fine.

For example, does it matter if MyWorkVar is defined as 11p2, 7p2 or 5p3 in
the following equations?
MyWorkVar = 14.23;
MyWorkVar = 7.5;
MyWorkVar = 123.01;
No, it doesn't matter. And it doesn't matter in
MyWorkVar=MySubprocedure(14.23);
MyWorkVar=MySubprocedure(7.5);
MyWorkVar=MySubprocedure(123.01);

Now, if you know that MySubprocedure often passes back decimal numbers
like 4.25, and if MyWorkVar is an integer value, you may wish to use:
MyWorkVar = %round(MySubprocedure(2.1) : 0);
or some such logic.



Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.