|
-----Message d'origine-----
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Dennis Lovelady
both CONST
and VALUE will cause a conversion from your input data type
to your procedure's required data type. In this case, you
have a field that can hold a value of plus/minus 999 million
and change. Your procedure has a limit of plus/minus
9 million and change. Your usage of CONST made the compiler
accept the difference, providing a temporary (same size as
specified in the proto) that would be passed to the
procedure.
If you want to be "protected" from such mistakes, remove the
CONST (and don't be tempted to replace it with VALUE). But
then you will lose a different kind of protection.
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.