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



Hello,

* APOSTROPFHE
D APS S 1 INZ(x'7D')


I would strongly recommend against hard-coding x'7D' in your program. Your software would then only work on systems where x'7D' happens to be the single quote.

What if someone took your code and put it on a different system where x'7D' isn't the quote mark?

You may be saying "that's very unlikely" -- but even so, it COULD happen -- and it's SOOO easy to do this without hard-coding the hex value, that I just don't see the reason you'd want to hard-code x'7D'.

Furthermore -- if APS is intended to always be an apostrophe, and never change, why did you code it as a variable? Why not use a named constant -- that's designed to be unchanged -- rather than code it as a variable?


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.